d3d9.dllExtractBasis
Microsoft DirectX 9.0 SDK Update (October 2004)

ID3DXPRTCompBuffer::ExtractBasis Method


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_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.




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