D3D_SHADER_VARIABLE_FLAGS enumeration (d3dcommon.h)
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_USERPACKED Value: 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_USED Value: 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_POINTER Value: 4 Indicates that this variable is an interface. |
D3D_SVF_INTERFACE_PARAMETER Value: 8 Indicates that this variable is a parameter of an interface. |
D3D10_SVF_USERPACKED Indicates that the registers assigned to this shader variable were explicitly declared in shader code (instead of automatically assigned by the compiler). |
D3D10_SVF_USED 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. |
D3D11_SVF_INTERFACE_POINTER Indicates that this variable is an interface. |
D3D11_SVF_INTERFACE_PARAMETER Indicates that this variable is a parameter of an interface. |
D3D_SVF_FORCE_DWORD Value: 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 |