D3D10_SHADER_VARIABLE_FLAGS enumeration

Flags that indicate information about a shader variable; these flags are returned using a reflection interface.

Syntax


typedef enum D3D10_SHADER_VARIABLE_FLAGS { 
  D3D10_SVF_USERPACKED           = 1,
  D3D10_SVF_USED                 = 2,
  D3D11_SVF_INTERFACE_POINTER    = 4,
  D3D11_SVF_INTERFACE_PARAMETER  = 8,
  D3D10_SVF_FORCE_DWORD          = 0x7fffffff
} D3D10_SHADER_VARIABLE_FLAGS, *LPD3D10_SHADER_VARIABLE_FLAGS;

Constants

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.

D3D10_SVF_FORCE_DWORD

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

Remarks

These flags are returned by a shader-variable description when using shader reflection (see ID3D10ShaderReflectionVariable::GetDesc).

The D3D10_SHADER_VARIABLE_FLAGS enumeration is type defined in the D3D10shader.h header file as a D3D_SHADER_VARIABLE_FLAGS enumeration, which is fully defined in the D3DCommon.h header file.



typedef D3D_SHADER_VARIABLE_FLAGS D3D10_SHADER_VARIABLE_FLAGS;

Requirements

Header

D3D10Shader.h

See also

Shader Enumerations

 

 

Show: