ID3DXPRTCompBuffer::ExtractTexture method

Extracts the per-sample principal component analysis (PCA) projection coefficients from an ID3DXPRTCompBuffer compressed data buffer and adds the data to an IDirect3DTexture9 object.

Syntax

HRESULT ExtractTexture(
  [in] UINT               StartPCA,
  [in] UINT               NumPCA,
  [in] LPDIRECT3DTEXTURE9 pTexture
);

Parameters

StartPCA [in]

Type: UINT

Starting value of the buffer coefficient from which to extract texture data.

NumPCA [in]

Type: UINT

Number of PCA coefficients to extract from the buffer.

pTexture [in]

Type: LPDIRECT3DTEXTURE9

Pointer to an IDirect3DTexture9 texture object that will store PCA coefficients.

Return value

Type: HRESULT

If the method succeeds, the return value is S_OK. If the method fails, the following value will be returned.

Requirements

Requirement Value
Header
D3DX9Mesh.h
Library
D3dx9.lib

See also

ID3DXPRTCompBuffer