Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Values that identify the class of a shader variable.
Note
For programming with Direct3D 10, this API has a type alias that begins D3D10_ instead of D3D_. These Direct3D 10 type aliases are defined in d3d10.h, d3d10misc.h, and d3d10shader.h.
Syntax
typedef enum _D3D_SHADER_VARIABLE_CLASS {
D3D_SVC_SCALAR = 0,
D3D_SVC_VECTOR,
D3D_SVC_MATRIX_ROWS,
D3D_SVC_MATRIX_COLUMNS,
D3D_SVC_OBJECT,
D3D_SVC_STRUCT,
D3D_SVC_INTERFACE_CLASS,
D3D_SVC_INTERFACE_POINTER,
D3D10_SVC_SCALAR,
D3D10_SVC_VECTOR,
D3D10_SVC_MATRIX_ROWS,
D3D10_SVC_MATRIX_COLUMNS,
D3D10_SVC_OBJECT,
D3D10_SVC_STRUCT,
D3D11_SVC_INTERFACE_CLASS,
D3D11_SVC_INTERFACE_POINTER,
D3D_SVC_FORCE_DWORD = 0x7fffffff
} D3D_SHADER_VARIABLE_CLASS;
Constants
D3D_SVC_SCALARValue: 0 The shader variable is a scalar. |
D3D_SVC_VECTORThe shader variable is a vector. |
D3D_SVC_MATRIX_ROWSThe shader variable is a row-major matrix. |
D3D_SVC_MATRIX_COLUMNSThe shader variable is a column-major matrix. |
D3D_SVC_OBJECTThe shader variable is an object. |
D3D_SVC_STRUCTThe shader variable is a structure. |
D3D_SVC_INTERFACE_CLASSThe shader variable is a class. |
D3D_SVC_INTERFACE_POINTERThe shader variable is an interface. |
D3D10_SVC_SCALARThe shader variable is a scalar. |
D3D10_SVC_VECTORThe shader variable is a vector. |
D3D10_SVC_MATRIX_ROWSThe shader variable is a row-major matrix. |
D3D10_SVC_MATRIX_COLUMNSThe shader variable is a column-major matrix. |
D3D10_SVC_OBJECTThe shader variable is an object. |
D3D10_SVC_STRUCTThe shader variable is a structure. |
D3D11_SVC_INTERFACE_CLASSThe shader variable is a class. |
D3D11_SVC_INTERFACE_POINTERThe shader variable is an interface. |
D3D_SVC_FORCE_DWORDValue: 0x7fffffff 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
| Requirement | Value |
|---|---|
| Header | d3dcommon.h |