texCUBE - HLSL

There are two overloaded tex3D cube texture lookup functions:

3D cube texture lookup

This function performs a 3D cube texture lookup.

Syntax

ret texCUBE(s, t)

Where:

Name In/Out Template Type Component Type Size
s in object samplerCUBE 1
t in vector float 3
ret out vector float 4

Minimum Shader Version

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

Vertex Shader Pixel Shader
n/a ps_1_1

3D cube texture lookup with partial derivatives

This function performs a 3D cube texture lookup also, but also uses the partial derivatives to help pick the LOD.

Syntax

ret texCUBE(s, t, ddx, ddy)

Where:

Name In/Out Template Type Component Type Size
s in object samplerCUBE 1
t in vector float 3
ddx in vector float 3
ddy in vector float 3
ret out vector float 4

Minimum Shader Version

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

Vertex Shader Pixel Shader
n/a ps_2_0

See Also

HLSL Intrinsic Functions