D3D10_SHADER_TYPE_DESC structure (d3d10shader.h)

Describes a shader-variable type.

Syntax

typedef struct _D3D10_SHADER_TYPE_DESC {
  D3D10_SHADER_VARIABLE_CLASS Class;
  D3D10_SHADER_VARIABLE_TYPE  Type;
  UINT                        Rows;
  UINT                        Columns;
  UINT                        Elements;
  UINT                        Members;
  UINT                        Offset;
} D3D10_SHADER_TYPE_DESC;

Members

Class

Type: D3D10_SHADER_VARIABLE_CLASS

Identifies the variable class as one of scalar, vector, matrix or object. See D3D10_SHADER_VARIABLE_CLASS.

Type

Type: D3D10_SHADER_VARIABLE_TYPE

The variable type. See D3D10_SHADER_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.

Remarks

Get a shader-variable-type description by calling ID3D10ShaderReflectionType::GetDesc.

Requirements

Requirement Value
Header d3d10shader.h

See also

Shader Structures