ID3DXPRTCompBuffer::ExtractPCA
Extracts the per-sample principal component analysis (PCA) projection coefficients from an ID3DXPRTCompBuffer compressed data buffer.
HRESULT ExtractPCA(
UINT StartPCA,
UINT NumExtract,
FLOAT * pPCACoefficients
);
Parameters
- StartPCA
- [in] Starting index for PCA projection coefficients to extract from the buffer.
- NumExtract
- [in] Number of PCA projection coefficients to extract from the buffer.
- pPCACoefficients
- [in] Pointer to the location where clustered principal component analysis (CPCA) coefficients are written. The size of the data written is (Number of Samples) * (Number of PCA Coefficients).
Return Values
If the method succeeds, the return value is S_OK. If the method fails, the following value will be returned.
D3DERR_INVALIDCALL
Requirements
Header: Declared in D3dx9mesh.h.