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>
10 using namespace gte;
11 
12 
14 {
15 }
16 
18  D3D_SHADER_INPUT_BIND_DESC const& desc)
19  :
20  HLSLResource(desc, 0),
21  mGpuWritable(desc.Type == D3D_SIT_UAV_RWBYTEADDRESS)
22 {
23 }
24 
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 
34 {
35  return mGpuWritable;
36 }
37 
#define D3D_SHADER_INPUT_BIND_DESC
GLuint index
Definition: glcorearb.h:781
HLSLByteAddressBuffer(D3D_SHADER_INPUT_BIND_DESC const &desc)


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:00