ID3DXPRTCompBuffer::ExtractToMesh method

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

Syntax

HRESULT ExtractToMesh(
  [in] UINT         NumPCA,
  [in] D3DDECLUSAGE Usage,
  [in] UINT         UsageIndexStart,
  [in] LPD3DXMESH   pScene
);

Parameters

NumPCA [in]

Type: UINT

Number of PCA coefficients to extract from the buffer.

Usage [in]

Type: D3DDECLUSAGE

Vertex usage descriptions of the mesh. See D3DDECLUSAGE.

UsageIndexStart [in]

Type: UINT

Starting index for PCA coefficients to be stored in the mesh.

pScene [in]

Type: LPD3DXMESH

Pointer to an ID3DXMesh mesh 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 return value can be one of the following: D3DERR_INVALIDCALL, E_OUTOFMEMORY.

Requirements

Requirement Value
Header
D3DX9Mesh.h
Library
D3dx9.lib

See also

ID3DXPRTCompBuffer