![]() |
![]() |
![]() |
Extracts the per-sample principal component analysis (PCA) projection coefficients from an ID3DXPRTCompBuffer compressed data buffer and adds the data to an ID3DXMesh object.
Syntax
HRESULT ExtractToMesh(
UINT NumPCA, D3DDECLUSAGE Usage, UINT UsageIndexStart, LPD3DXMESH pScene );
Parameters
- NumPCA
- [in] Number of PCA coefficients to extract from the buffer.
- Usage
- [in] Vertex usage descriptions of the mesh. See D3DDECLUSAGE.
- UsageIndexStart
- [in] Starting index for PCA coefficients to be stored in the mesh.
- pScene
- [in] Pointer to an ID3DXMesh mesh object that will store PCA coefficients.
Return Value
If the method succeeds, the return value is S_OK.
If the method fails, the return value can be one of the following:
D3DERR_INVALIDCALL The method call is invalid. For example, a method's parameter may have an invalid value. E_OUTOFMEMORY Microsoft Direct3D could not allocate sufficient memory to complete the call.