Main Page
Namespaces
Classes
Files
File List
File Members
include
Graphics
DX11
GteHLSLStructuredBuffer.h
Go to the documentation of this file.
1
// David Eberly, Geometric Tools, Redmond WA 98052
2
// Copyright (c) 1998-2017
3
// Distributed under the Boost Software License, Version 1.0.
4
// http://www.boost.org/LICENSE_1_0.txt
5
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
6
// File Version: 3.0.1 (2016/09/12)
7
8
#pragma once
9
10
#include <
Graphics/DX11/GteHLSLResource.h
>
11
12
namespace
gte
13
{
14
15
class
GTE_IMPEXP
HLSLStructuredBuffer
:
public
HLSLResource
16
{
17
public
:
18
enum
GTE_IMPEXP
Type
19
{
20
SBT_INVALID
,
21
SBT_BASIC
,
22
SBT_APPEND
,
23
SBT_CONSUME
,
24
SBT_COUNTER
25
};
26
27
// Construction and destruction.
28
virtual
~HLSLStructuredBuffer();
29
30
HLSLStructuredBuffer(
D3D_SHADER_INPUT_BIND_DESC
const
& desc);
31
32
HLSLStructuredBuffer(
D3D_SHADER_INPUT_BIND_DESC
const
& desc,
33
unsigned
int
index
);
34
35
// Member access.
36
Type GetType()
const
;
37
bool
IsGpuWritable()
const
;
38
39
private
:
40
void
Initialize(
D3D_SHADER_INPUT_BIND_DESC
const
& desc);
41
42
Type
mType
;
43
bool
mGpuWritable
;
44
};
45
46
}
gte::HLSLStructuredBuffer::mType
Type mType
Definition:
GteHLSLStructuredBuffer.h:42
GteHLSLResource.h
SBT_APPEND
SBT_APPEND
Definition:
GteHLSLStructuredBuffer.h:20
gte
Definition:
GLX/GteWICFileIO.h:16
D3D_SHADER_INPUT_BIND_DESC
#define D3D_SHADER_INPUT_BIND_DESC
Definition:
GteHLSLResource.h:43
gte::HLSLResource
Definition:
GteHLSLResource.h:53
SBT_BASIC
SBT_BASIC
Definition:
GteHLSLStructuredBuffer.h:20
SBT_CONSUME
SBT_CONSUME
Definition:
GteHLSLStructuredBuffer.h:20
index
GLuint index
Definition:
glcorearb.h:781
gte::HLSLStructuredBuffer
Definition:
GteHLSLStructuredBuffer.h:15
gte::HLSLStructuredBuffer::mGpuWritable
bool mGpuWritable
Definition:
GteHLSLStructuredBuffer.h:43
GTE_IMPEXP
#define GTE_IMPEXP
Definition:
GTEngineDEF.h:63
SBT_INVALID
SBT_INVALID
Definition:
GteHLSLStructuredBuffer.h:20
geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:00