Microsoft DirectX 8.0 (C++) |
To determine the maximum size for the indexed vertex blending matrix, check the MaxVertexBlendMatrix member of the D3DCAPS8 structure. The code example below uses the IDirect3DDevice8::GetDeviceCaps method to retrieve this size.
D3DCAPS8 d3dCaps; d3dDevice->GetDeviceCaps( &d3dCaps ); IndexedMatrixMaxSize = d3dCaps.MaxVertexBlendMatrixIndex;
If the value set in MaxVertexBlendMatrix is 0, then the device does not support indexed matrices.
Note When software vertex processing is used, 256 matrices can be used for indexed vertex blending, with or without normal blending.