![]() |
![]() |
![]() |
Extracts the mean and principal component analysis (PCA) basis vectors for a given cluster from an ID3DXPRTCompBuffer compressed data buffer.
Syntax
HRESULT ExtractBasis(
UINT Cluster, FLOAT *pClusterBasis );
Parameters
- Cluster
- [in] Cluster for which the basis will be extracted.
- pClusterBasis
- [in, out] Pointer to an array of basis vector data for Cluster.The size of the FLOAT data stored will be:(1 + Number of PCA vectors per cluster) * (Number of coefficients) * (Number of color channels)
Return Value
If the method succeeds, the return value is S_OK.
If the method fails, the following value will be returned.
D3DERR_INVALIDCALL The method call is invalid. For example, a method's parameter may have an invalid value.