D3DXSEMANTIC structure

Semantics map a parameter to vertex or pixel shader registers. They can also be optional descriptive strings attached to non-register parameters.

Syntax

typedef struct D3DXSEMANTIC {
  UINT Usage;
  UINT UsageIndex;
} D3DXSEMANTIC, *LPD3DXSEMANTIC;

Members

Usage

Type: UINT

Options that identify how resources are used. See D3DDECLUSAGE.

UsageIndex

Type: UINT

Options that modify how the usage is interpreted. The usage and usage index make up a vertex declaration. See Vertex Declaration (Direct3D 9).

Remarks

Semantics are required for vertex and pixel shader, input and output registers.

Requirements

Requirement Value
Header
D3dx9shader.h

See also

Effect Structures