D3D12_SHADER_TYPE_DESC structure (d3d12shader.h)
Describes a shader-variable type.
Syntax
typedef struct _D3D12_SHADER_TYPE_DESC {
D3D_SHADER_VARIABLE_CLASS Class;
D3D_SHADER_VARIABLE_TYPE Type;
UINT Rows;
UINT Columns;
UINT Elements;
UINT Members;
UINT Offset;
LPCSTR Name;
} D3D12_SHADER_TYPE_DESC;
Members
Class
A D3D_SHADER_VARIABLE_CLASS-typed value that identifies the variable class as one of scalar, vector, matrix, object, and so on.
Type
A D3D_SHADER_VARIABLE_TYPE-typed value that identifies the variable type.
Rows
Number of rows in a matrix. Otherwise a numeric type returns 1, any other type returns 0.
Columns
Number of columns in a matrix. Otherwise a numeric type returns 1, any other type returns 0.
Elements
Number of elements in an array; otherwise 0.
Members
Number of members in the structure; otherwise 0.
Offset
Offset, in bytes, between the start of the parent structure and this variable. Can be 0 if not a structure member.
Name
Name of the shader-variable type. This member can be NULL if it isn't used. This member supports dynamic shader linkage interface types, which have names. For more info about dynamic shader linkage, see Dynamic Linking.
Remarks
Get a shader-variable-type description by calling ID3D12ShaderReflectionType::GetDesc.
Requirements
Requirement | Value |
---|---|
Header | d3d12shader.h |