D3D10_SHADER_VARIABLE_DESC structure (d3d10shader.h)

Describes a shader variable.

Syntax

typedef struct _D3D10_SHADER_VARIABLE_DESC {
  LPCSTR Name;
  UINT   StartOffset;
  UINT   Size;
  UINT   uFlags;
  LPVOID DefaultValue;
} D3D10_SHADER_VARIABLE_DESC;

Members

Name

Type: LPCSTR

The variable name.

StartOffset

Type: UINT

Offset from the start of the parent structure, to the beginning of the variable.

Size

Type: UINT

Size of the variable (in bytes).

uFlags

Type: UINT

Flags, which identify shader-variable properties (see D3D10_SHADER_VARIABLE_FLAGS).

DefaultValue

Type: LPVOID

The default value for initializing the variable.

Remarks

Get a shader-variable description using reflection, by calling ID3D10ShaderReflectionVariable::GetDesc.

Requirements

Requirement Value
Header d3d10shader.h

See also

Shader Structures