Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

D3D_SHADER_VARIABLE_CLASS enumeration

Values that identify the class of a shader variable.

Syntax


typedef enum _D3D_SHADER_VARIABLE_CLASS { 
  D3D_SVC_SCALAR               = 0,
  D3D_SVC_VECTOR               = ( D3D_SVC_SCALAR + 1 ),
  D3D_SVC_MATRIX_ROWS          = ( D3D_SVC_VECTOR + 1 ),
  D3D_SVC_MATRIX_COLUMNS       = ( D3D_SVC_MATRIX_ROWS + 1 ),
  D3D_SVC_OBJECT               = ( D3D_SVC_MATRIX_COLUMNS + 1 ),
  D3D_SVC_STRUCT               = ( D3D_SVC_OBJECT + 1 ),
  D3D_SVC_INTERFACE_CLASS      = ( D3D_SVC_STRUCT + 1 ),
  D3D_SVC_INTERFACE_POINTER    = ( D3D_SVC_INTERFACE_CLASS + 1 ),
  D3D10_SVC_SCALAR             = D3D_SVC_SCALAR,
  D3D10_SVC_VECTOR             = D3D_SVC_VECTOR,
  D3D10_SVC_MATRIX_ROWS        = D3D_SVC_MATRIX_ROWS,
  D3D10_SVC_MATRIX_COLUMNS     = D3D_SVC_MATRIX_COLUMNS,
  D3D10_SVC_OBJECT             = D3D_SVC_OBJECT,
  D3D10_SVC_STRUCT             = D3D_SVC_STRUCT,
  D3D11_SVC_INTERFACE_CLASS    = D3D_SVC_INTERFACE_CLASS,
  D3D11_SVC_INTERFACE_POINTER  = D3D_SVC_INTERFACE_POINTER,
  D3D_SVC_FORCE_DWORD          = 0x7fffffff
} D3D_SHADER_VARIABLE_CLASS;

Constants

D3D_SVC_SCALAR

The shader variable is a scalar.

D3D_SVC_VECTOR

The shader variable is a vector.

D3D_SVC_MATRIX_ROWS

The shader variable is a row-major matrix.

D3D_SVC_MATRIX_COLUMNS

The shader variable is a column-major matrix.

D3D_SVC_OBJECT

The shader variable is an object.

D3D_SVC_STRUCT

The shader variable is a structure.

D3D_SVC_INTERFACE_CLASS

The shader variable is a class.

D3D_SVC_INTERFACE_POINTER

The shader variable is an interface.

D3D10_SVC_SCALAR

The shader variable is a scalar.

D3D10_SVC_VECTOR

The shader variable is a vector.

D3D10_SVC_MATRIX_ROWS

The shader variable is a row-major matrix.

D3D10_SVC_MATRIX_COLUMNS

The shader variable is a column-major matrix.

D3D10_SVC_OBJECT

The shader variable is an object.

D3D10_SVC_STRUCT

The shader variable is a structure.

D3D11_SVC_INTERFACE_CLASS

The shader variable is a class.

D3D11_SVC_INTERFACE_POINTER

The shader variable is an interface.

D3D_SVC_FORCE_DWORD

This value is not used by a programmer; it exists to force the enumeration to compile to 32 bits.

Remarks

The class of a shader variable is not a programming class; the class identifies the variable class such as scalar, vector, object, and so on. D3D_SHADER_VARIABLE_CLASS-typed values are specified in the Class member of the D3D11_SHADER_TYPE_DESC structure.

Requirements

Header

D3DCommon.h

See also

Common Version Enumerations

 

 

Show:
© 2017 Microsoft