ID3DXPRTCompBuffer interface

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

Members

The ID3DXPRTCompBuffer interface inherits from the IUnknown interface. ID3DXPRTCompBuffer also has these types of members:

Methods

The ID3DXPRTCompBuffer interface has these methods.

Method Description
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 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;

Requirements

Header
D3DX9Mesh.h
Library
D3dx9.lib

See also

D3DX Interfaces

D3DXCreatePRTCompBuffer

ID3DXPRTBuffer