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 
11 
12 namespace gte
13 {
14 
16 {
17 public:
18  enum GTE_IMPEXP Type
19  {
21  SBT_BASIC,
22  SBT_APPEND,
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;
44 };
45 
46 }
#define D3D_SHADER_INPUT_BIND_DESC
GLuint index
Definition: glcorearb.h:781
#define GTE_IMPEXP
Definition: GTEngineDEF.h:63


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