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_FLAGS enumeration

Values that identify information about a shader variable.

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           = D3D_SVF_USERPACKED,
  D3D10_SVF_USED                 = D3D_SVF_USED,
  D3D11_SVF_INTERFACE_POINTER    = D3D_SVF_INTERFACE_POINTER,
  D3D11_SVF_INTERFACE_PARAMETER  = D3D_SVF_INTERFACE_PARAMETER,
  D3D_SVF_FORCE_DWORD            = 0x7fffffff
} D3D_SHADER_VARIABLE_FLAGS;

Constants

D3D_SVF_USERPACKED

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

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

Indicates that this variable is an interface.

D3D_SVF_INTERFACE_PARAMETER

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

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

Header

D3DCommon.h

See also

Common Version Enumerations

 

 

Show:
© 2017 Microsoft