Share via


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_CLASS

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

  • Type
    Typ: D3D10_SHADER_VARIABLE_TYPE

    The variable type. See D3D10_SHADER_VARIABLE_TYPE.

  • Rows
    Typ: UINT

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

  • Columns
    Typ: UINT

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

  • Elements
    Typ: UINT

    Number of elements in an array; otherwise 0.

  • Members
    Typ: UINT

    Number of members in the structure; otherwise 0.

  • Offset
    Typ: UINT

    Offset, 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

Siehe auch

Shader Structures