Skip to content

Latest commit

 

History

History
96 lines (60 loc) · 2.31 KB

d3dxfillcubetexturetx.md

File metadata and controls

96 lines (60 loc) · 2.31 KB
description ms.assetid title ms.topic ms.date topic_type api_name api_type api_location
D3DXFillCubeTextureTX function - Uses a compiled high-level shader language (HLSL) function to fill each texel of each mipmap level of a texture.
a0c36967-57e6-4771-8e9f-f32949c12001
D3DXFillCubeTextureTX function (D3dx9tex.h)
reference
05/31/2018
APIRef
kbSyntax
D3DXFillCubeTextureTX
LibDef
d3dx9.lib
d3dx9.dll

D3DXFillCubeTextureTX function

Uses a compiled high-level shader language (HLSL) function to fill each texel of each mipmap level of a texture.

Syntax

HRESULT D3DXFillCubeTextureTX(
  _In_ LPDIRECT3DCUBETEXTURE9 pTexture,
  _In_ LPD3DXTEXTURESHADER    pTextureShader
);

Parameters

pTexture [in]

Type: LPDIRECT3DCUBETEXTURE9

Pointer to an IDirect3DCubeTexture9 object, representing the texture to be filled.

pTextureShader [in]

Type: LPD3DXTEXTURESHADER

Pointer to a ID3DXTextureShader texture shader object.

Return value

Type: HRESULT

If the function succeeds, the return value is D3D_OK. If the function fails, the return value can be one of the following: D3DERR_NOTAVAILABLE, D3DERR_INVALIDCALL.

Remarks

The texture target must be an HLSL function that takes contains the following semantics:

  • One input parameter must use a POSITION semantic.
  • One input parameter must use a PSIZE semantic.
  • The function must return a parameter that uses the COLOR semantic.

The input parameters can be in any order. For an example, see D3DXFillTextureTX

Requirements

Requirement Value
Header
D3dx9tex.h
Library
D3dx9.lib

See also

Texture Functions in D3DX 9

D3DXFillVolumeTextureTX