D3DVSD_REG
Binds a single vertex register to a vertex element from the vertex stream.
D3DVSD_REG( _VertexRegister, _Type ) \
(D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_STREAMDATA) | \
((_Type) << D3DVSD_DATATYPESHIFT) | (_VertexRegister))
Parameters
- _VertexRegister
- Address of the vertex register. Possible values range from 0 through 16. For the fixed function pipeline, the input registers have the following fixed mapping.
- D3DVSDE_POSITION
- Register 0.
- D3DVSDE_BLENDWEIGHT
- Register 1.
- D3DVSDE_BLENDINDICES
- Register 2.
- D3DVSDE_NORMAL
- Register 3.
- D3DVSDE_PSIZE
- Register 4.
- D3DVSDE_DIFFUSE
- Register 5.
- D3DVSDE_SPECULAR
- Register 6.
- D3DVSDE_TEXCOORD0
- Register 7.
- D3DVSDE_TEXCOORD1
- Register 8.
- D3DVSDE_TEXCOORD2
- Register 9.
- D3DVSDE_TEXCOORD3
- Register 10.
- D3DVSDE_TEXCOORD4
- Register 11.
- D3DVSDE_TEXCOORD5
- Register 12.
- D3DVSDE_TEXCOORD6
- Register 13.
- D3DVSDE_TEXCOORD7
- Register 14.
- D3DVSDE_POSITION2
- Register 15.
- D3DVSDE_NORMAL2
- Register 16.
- _Type
- Specifies the dimensionality and arithmetic data type. The following values are defined.
- D3DVSDT_D3DCOLOR
- 4-D packed unsigned bytes mapped to 0.0 to 1.0 range. In double word format this is ARGB, or in byte ordering it would be B, G, R, A.
- D3DVSDT_FLOAT1
- 1-D float expanded to (value, 0.0, 0.0, 1.0)
- D3DVSDT_FLOAT2
- 2-D float expanded to (value, value, 0.0, 1.0)
- D3DVSDT_FLOAT3
- 3-D float expanded to (value, value, value, 1.0)
- D3DVSDT_FLOAT4
- 4-D float.
- D3DVSDT_SHORT2
- 2-D signed short expanded to (value, value, 0.0, 1.0)
- D3DVSDT_SHORT4
- 4-D signed short
- D3DVSDT_UBYTE4
- 4-D unsigned byte. In double word format this is ABGR, or in byte ordering it would be R, G, B, A.
Requirements
Header: Declared in D3d8types.h.
See Also
IDirect3DDevice8::CreateVertexShader