![]() |
![]() |
![]() |
Extracts coefficient data from a color channel of the buffer for a specified range of coefficients, and adds the data to an IDirect3DTexture9 object.
Syntax
HRESULT ExtractTexture(
UINT Channel, UINT StartCoefficient, UINT NumCoefficients, LPDIRECT3DTEXTURE9 pTexture );
Parameters
- Channel
- [in] Buffer color channel from which to extract texture data.
- StartCoefficient
- [in] Starting value of the buffer coefficient from which to extract texture data.
- NumCoefficients
- [in] Number of scalars, beginning at StartCoefficient, from which to extract texture data.
- pTexture
- [in] Pointer to a IDirect3DTexture9 texture object that will store coefficients.
Return Value
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 The method call is invalid. For example, a method's parameter may have an invalid value. E_OUTOFMEMORY Microsoft Direct3D could not allocate sufficient memory to complete the call.