Mapping between a DirectX 9 Declaration and a DirectX 8 Declaration
Microsoft DirectX 9.0 SDK Update (October 2004)

Mapping between a DirectX 9 Declaration and a DirectX 8 Declaration


This table maps members of a D3DVERTEXELEMENT9 declaration to a Microsoft DirectX 8.0 declaration.

DirectX 9.0 UsageDirectX 9.0 Usage indexDirectX 8.0
D3DDECLUSAGE_POSITION0D3DVSDE_POSITION
D3DDECLUSAGE_POSITION1D3DVSDE_POSITION2
D3DDECLUSAGE_NORMAL0D3DVSDE_NORMAL
D3DDECLUSAGE_NORMAL1D3DVSDE_NORMAL2
D3DDECLUSAGE_BLENDWEIGHT0D3DVSDE_BLENDWEIGHT
D3DDECLUSAGE_BLENDINDICES0D3DVSDE_BLENDINDICES
D3DDECLUSAGE_PSIZE0D3DVSDE_PSIZE
D3DDECLUSAGE_COLOR0D3DVSDE_DIFFUSE
D3DDECLUSAGE_COLOR1D3DVSDE_SPECULAR
D3DDECLUSAGE_TEXCOORDnD3DVSDE_TEXCOORDn

When a declaration is used with hardware vertex processing on a DirectX 7.0 driver, the Microsoft Direct3D runtime converts it to a flexible vertex format (FVF) with the following rules:



© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.