![]() |
![]() |
![]() |
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(
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 Value
If the method succeeds, the return value is S_OK.
If the method fails, the following value will be returned.
D3DERR_INVALIDCALL The method call is invalid. For example, a method's parameter may have an invalid value.