D3D11_SHADER_TYPE_DESC Structure
Describes a shader-variable type.
Syntax
typedef struct D3D11_SHADER_TYPE_DESC {
D3D10_SHADER_VARIABLE_CLASS Class;
D3D10_SHADER_VARIABLE_TYPE Type;
UINT Rows;
UINT Columns;
UINT Elements;
UINT Members;
UINT Offset;
} D3D11_SHADER_TYPE_DESC;
Mitglieder
Class
Typ: D3D10_SHADER_VARIABLE_CLASSIdentifies the variable class as one of scalar, vector, matrix or object. See D3D10_SHADER_VARIABLE_CLASS.
Type
Typ: D3D10_SHADER_VARIABLE_TYPEThe variable type. See D3D10_SHADER_VARIABLE_TYPE.
Rows
Typ: UINTNumber of rows in a matrix. Otherwise a numeric type returns 1, any other type returns 0.
Columns
Typ: UINTNumber of columns in a matrix. Otherwise a numeric type returns 1, any other type returns 0.
Elements
Typ: UINTNumber of elements in an array; otherwise 0.
Members
Typ: UINTNumber of members in the structure; otherwise 0.
Offset
Typ: UINTOffset, in bytes, between the start of the parent structure and this variable.
Hinweise
Get a shader-variable-type description by calling ID3D11ShaderReflectionType::GetDesc.
Anforderungen
Header |
D3D11Shader.h |