Export (0) Print
Expand All

D3D11_SHADER_TYPE_DESC structure

Describes a shader-variable type.

Syntax


typedef struct _D3D11_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;
} D3D11_SHADER_TYPE_DESC;

Members

Class

Type: D3D_SHADER_VARIABLE_CLASS

A D3D_SHADER_VARIABLE_CLASS-typed value that identifies the variable class as one of scalar, vector, matrix, object, and so on.

Type

Type: D3D_SHADER_VARIABLE_TYPE

A D3D_SHADER_VARIABLE_TYPE-typed value that identifies the variable type.

Rows

Type: UINT

Number of rows in a matrix. Otherwise a numeric type returns 1, any other type returns 0.

Columns

Type: UINT

Number of columns in a matrix. Otherwise a numeric type returns 1, any other type returns 0.

Elements

Type: UINT

Number of elements in an array; otherwise 0.

Members

Type: UINT

Number of members in the structure; otherwise 0.

Offset

Type: UINT

Offset, in bytes, between the start of the parent structure and this variable. Can be 0 if not a structure member.

Name

Type: LPCSTR

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 ID3D11ShaderReflectionType::GetDesc.

Requirements

Header

D3D11Shader.h

See also

Shader Structures

 

 

Community Additions

ADD
Show:
© 2014 Microsoft