texCUBE - HLSL
Microsoft DirectX 9.0 SDK Update (October 2004)

texCUBE - HLSL


There are two overloaded tex3D cube texture lookup functions:

3-D cube texture lookup

This function performs a 3-D cube texture lookup.

Syntax

ret texCUBE(s, t)

Where:

NameIn/OutTemplate TypeComponent TypeSize
sinobjectsamplerCUBE1
tinvectorfloat3
retoutvectorfloat4

Minimum Shader Version

This intrinsic function is supported in the following (or above) shader versions:

Vertex ShaderPixel Shader
n/aps_1_1

3-D cube texture lookup with partial derivatives

This function performs a 3-D cube texture lookup also, but also uses the partial derivatives to help pick the level of detail (LOD).

Syntax

ret texCUBE(s, t, ddx, ddy)

Where:

NameIn/OutTemplate TypeComponent TypeSize
sinobjectsamplerCUBE1
tinvectorfloat3
ddxinvectorfloat3
ddyinvectorfloat3
retoutvectorfloat4

Minimum Shader Version

This intrinsic function is supported in the following (or above) shader versions:

Vertex ShaderPixel Shader
n/aps_2_0


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.