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

ID3DXPRTCompBuffer Interface


The ID3DXPRTCompBuffer interface stores a compressed version of a ID3DXPRTBuffer buffer, for use with principal component analysis (PCA).

ID3DXPRTCompBuffer Members

ExtractBasis Extracts the mean and principal component analysis (PCA) basis vectors for a given cluster from an ID3DXPRTCompBuffer compressed data buffer.
ExtractClusterIDs Extracts the per-sample cluster identifiers (IDs) from an ID3DXPRTCompBuffer compressed data buffer.
ExtractPCA Extracts the per-sample principal component analysis (PCA) projection coefficients from an ID3DXPRTCompBuffer compressed data buffer.
ExtractTexture Extracts the per-sample principal component analysis (PCA) projection coefficients from an ID3DXPRTCompBuffer compressed data buffer and adds the data to an IDirect3DTexture9 object.
ExtractToMesh Extracts the per-sample principal component analysis (PCA) projection coefficients from an ID3DXPRTCompBuffer compressed data buffer and adds the data to an ID3DXMesh object.
GetHeight Retrieves the height of the texture, in pixels.
GetNumChannels Retrieves the number of color channels used in memory to store samples.
GetNumClusters Retrieves the number of clusters to use for compression.
GetNumCoeffs Retrieves the number of scalars per color channel used in memory to store samples.
GetNumPCA Retrieves the number of principal component analysis (PCA) basis vectors to use in each cluster.
GetNumSamples Retrieves the number of vertices (or texels) sampled.
GetWidth Retrieves the width of the texture, in pixels.
IsTexture Indicates whether the buffer contains a texture.
NormalizeData Normalizes all principal component analysis (PCA) weights so that they are between -1 and 1. Basis vectors are modified to reflect this normalization.

Remarks

The ID3DXPRTCompBuffer interface is obtained by calling the D3DXCreatePRTCompBuffer function.

The LPD3DXPRTCOMPBUFFER type is defined as a pointer to the ID3DXPRTCompBuffer interface.

typedef interface ID3DXPRTCompBuffer ID3DXPRTCompBuffer;
typedef interface ID3DXPRTCompBuffer *LPD3DXPRTCOMPBUFFER;

Interface Information

Stock Implementationd3d9.dll
Custom ImplementationNo
Inherits fromIUnknown
Headerd3dx9mesh.h
Import libraryd3dx9.lib
Minimum operating systems Windows 98

See Also

D3DXCreatePRTCompBuffer, ID3DXPRTBuffer


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