?/TD>
Microsoft DirectX 9.0

D3DXFillVolumeTextureTX Function


Uses a high-level language texture target to fill each texel of each texture mipmap level.

Syntax

HRESULT D3DXFillVolumeTextureTX(      

    LPDIRECT3DVOLUMETEXTURE9 pTexture,     CONST WORD* pFunction,     CONST D3DXVECTOR4* pConstants,     UINT dxConstants );

Parameters

pTexture
[in] Pointer to an IDirect3DVolumeTexture9 object, representing the texture to be filled.
pFunction
[in] Pointer to a buffer containing the compiled function.
pConstants
[in] Array of constants. This is provided by the application from the constant table. See D3DXVECTOR4.
dxConstants
[in] Number of constants.

Return Value

If the function succeeds, the return value is D3D_OK.

If the function fails, the return value can be one of the following values.

D3DERR_NOTAVAILABLEThis device does not support the queried technique.
D3DERR_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.


Remarks

The high-level language texture target should be a compiled function taking two parameters and returning a color.

Function Information

Headerd3dx9tex.h
Import libraryd3dx9.lib
Minimum operating systems Windows 98

See Also

D3DXFillTextureTX, D3DXFillCubeTextureTX


© 2002 Microsoft Corporation. All rights reserved.