Export (0) Print
Expand All

dcl_usage input (sm1, sm2, sm3 - vs asm)

Declare the association between a vertex element usage and a usage index for a vertex shader input register.

Syntax

dcl_usage[usage_index] v#

 

Where:

  • dcl_usage identifies how the register data will be used. This is the same value as the members of D3DDECLUSAGE without the D3DDECLUSAGE prefix.
  • usage_index is an optional integer index between 0 and 15. It modifies the usage data. The index matches the usage index in a vertex declaration. See Vertex Declaration (Direct3D 9). The index is appended to the usage value (dcl_usage ) with no space. If it is not supplied, it is assumed to be 0.
  • v# is a Input Register.

Remarks

Vertex shader versions1_12_02_x2_sw3_03_sw
dcl_usagexxxxxx

 

All dcl_usage instructions must appear before the first executable instruction.

 

 

Community Additions

ADD
Show:
© 2015 Microsoft