Main Page
Namespaces
Classes
Files
File List
File Members
src
Graphics
DX11
GteHLSLByteAddressBuffer.cpp
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
#include <
GTEnginePCH.h
>
9
#include <
Graphics/DX11/GteHLSLByteAddressBuffer.h
>
10
using namespace
gte
;
11
12
13
HLSLByteAddressBuffer::~HLSLByteAddressBuffer
()
14
{
15
}
16
17
HLSLByteAddressBuffer::HLSLByteAddressBuffer
(
18
D3D_SHADER_INPUT_BIND_DESC
const
& desc)
19
:
20
HLSLResource
(desc, 0),
21
mGpuWritable
(desc.Type == D3D_SIT_UAV_RWBYTEADDRESS)
22
{
23
}
24
25
HLSLByteAddressBuffer::HLSLByteAddressBuffer
(
26
D3D_SHADER_INPUT_BIND_DESC
const
& desc,
unsigned
int
index
)
27
:
28
HLSLResource
(desc, index, 0),
29
mGpuWritable
(desc.Type == D3D_SIT_UAV_RWBYTEADDRESS)
30
{
31
}
32
33
bool
HLSLByteAddressBuffer::IsGpuWritable
()
const
34
{
35
return
mGpuWritable
;
36
}
37
gte::HLSLByteAddressBuffer::mGpuWritable
bool mGpuWritable
Definition:
GteHLSLByteAddressBuffer.h:30
GteHLSLByteAddressBuffer.h
GTEnginePCH.h
gte::HLSLByteAddressBuffer::~HLSLByteAddressBuffer
virtual ~HLSLByteAddressBuffer()
Definition:
GteHLSLByteAddressBuffer.cpp:13
gte::HLSLByteAddressBuffer::IsGpuWritable
bool IsGpuWritable() const
Definition:
GteHLSLByteAddressBuffer.cpp:33
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
index
GLuint index
Definition:
glcorearb.h:781
gte::HLSLByteAddressBuffer::HLSLByteAddressBuffer
HLSLByteAddressBuffer(D3D_SHADER_INPUT_BIND_DESC const &desc)
Definition:
GteHLSLByteAddressBuffer.cpp:17
geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:00