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 information about 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_FLAGS {
D3D_SVF_USERPACKED = 1,
D3D_SVF_USED = 2,
D3D_SVF_INTERFACE_POINTER = 4,
D3D_SVF_INTERFACE_PARAMETER = 8,
D3D10_SVF_USERPACKED,
D3D10_SVF_USED,
D3D11_SVF_INTERFACE_POINTER,
D3D11_SVF_INTERFACE_PARAMETER,
D3D_SVF_FORCE_DWORD = 0x7fffffff
} D3D_SHADER_VARIABLE_FLAGS;
Constants
D3D_SVF_USERPACKEDValue: 1 Indicates that the registers assigned to this shader variable were explicitly declared in shader code (instead of automatically assigned by the compiler). |
D3D_SVF_USEDValue: 2 Indicates that this variable is used by this shader. This value confirms that a particular shader variable (which can be common to many different shaders) is indeed used by a particular shader. |
D3D_SVF_INTERFACE_POINTERValue: 4 Indicates that this variable is an interface. |
D3D_SVF_INTERFACE_PARAMETERValue: 8 Indicates that this variable is a parameter of an interface. |
D3D10_SVF_USERPACKEDIndicates that the registers assigned to this shader variable were explicitly declared in shader code (instead of automatically assigned by the compiler). |
D3D10_SVF_USEDIndicates that this variable is used by this shader. This value confirms that a particular shader variable (which can be common to many different shaders) is indeed used by a particular shader. |
D3D11_SVF_INTERFACE_POINTERIndicates that this variable is an interface. |
D3D11_SVF_INTERFACE_PARAMETERIndicates that this variable is a parameter of an interface. |
D3D_SVF_FORCE_DWORDValue: 0x7fffffff This value is not used by a programmer; it exists to force the enumeration to compile to 32 bits. |
Remarks
A call to the ID3D11ShaderReflectionVariable::GetDesc method returns D3D_SHADER_VARIABLE_FLAGS values in the uFlags member of a D3D11_SHADER_VARIABLE_DESC structure.
Requirements
| Requirement | Value |
|---|---|
| Header | d3dcommon.h |