?/TD> |
Microsoft DirectX 9.0 |
Uses a high-level language texture target to fill each mipmap level of a texture.
Syntax
HRESULT D3DXFillTextureTX(
LPDIRECT3DTEXTURE9 pTexture, CONST WORD* pFunction, CONST D3DXVECTOR4* pConstants, UINT dxConstants );
Parameters
- pTexture
- [in, out] Pointer to an IDirect3DTexture9 object, representing the texture to be filled.
- pFunction
- [in] Pointer to a buffer containing the compiled shader function. This can be created using D3DXCompileShader.
- pConstants
- [in] Array of constants. This is provided by the application from the constant table. See D3DXVECTOR4. This value can be NULL.
- dxConstants
- [in] Number of constants. This can be 0 if pConstants = NULL.
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_NOTAVAILABLE This device does not support the queried technique. D3DERR_INVALIDCALL The method call is invalid. For example, a method's parameter may have an invalid value.
Remarks
EffectEdit Sample demonstrates the use of this function.
Function Information
Header d3dx9tex.h Import library d3dx9.lib Minimum operating systems Windows 98
See Also
D3DXFillCubeTextureTX, D3DXFillVolumeTextureTX