GteHLSLParameter.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 #include <fstream>
12 
13 namespace gte
14 {
15 
17 {
18 public:
19  struct Description
20  {
22  unsigned int semanticIndex;
23  unsigned int registerIndex;
24  D3D_NAME systemValueType;
25  D3D_REGISTER_COMPONENT_TYPE componentType;
26  unsigned int mask;
27  unsigned int readWriteMask;
28  unsigned int stream;
29  D3D_MIN_PRECISION minPrecision;
30  };
31 
32  // Construction. Parameters are reported for inputs, outputs, and patch
33  // constants.
35 
36  // Member access.
37  std::string const& GetSemanticName() const;
38  unsigned int GetSemanticIndex() const;
39  unsigned int GetRegisterIndex() const;
40  D3D_NAME GetSystemValueType() const;
41  D3D_REGISTER_COMPONENT_TYPE GetComponentType() const;
42  unsigned int GetMask() const;
43  unsigned int GetReadWriteMask() const;
44  unsigned int GetStream() const;
45  D3D_MIN_PRECISION GetMinPrecision() const;
46 
47  // Print to a text file for human readability.
48  void Print(std::ofstream& output) const;
49 
50 private:
52 
53  // Support for Print.
54  static std::string const msSVName[];
55  static std::string const msComponentType[];
56  static std::string const msMinPrecision[];
57 };
58 
59 }
#define D3D_SIGNATURE_PARAMETER_DESC
D3D_REGISTER_COMPONENT_TYPE componentType
GLsizei const GLchar *const * string
Definition: glcorearb.h:809
#define GTE_IMPEXP
Definition: GTEngineDEF.h:63


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