ID3DXPRTCompBuffer::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.

HRESULT ExtractTexture(
  UINT StartPCA,
  UINT NumPCA,
  LPDIRECT3DTEXTURE9 pTexture
);

Parameters

StartPCA
[in] Starting value of the buffer coefficient from which to extract texture data.
NumPCA
[in] Number of PCA coefficients to extract from the buffer.
pTexture
[in] Pointer to an IDirect3DTexture9 texture object that will store 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.