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

tex3D - HLSL


There are two overloaded tex3D volume texture lookup functions:

3-D texture lookup

This function performs a 3-D volume texture lookup.

Syntax

ret tex3D(s, t)

Where:

NameIn/OutTemplate TypeComponent TypeSize
sinobjectsampler3D3
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 texture lookup with partial derivatives

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

Syntax

ret tex3D(s, t, ddx, ddy)

Where:

NameIn/OutTemplate TypeComponent TypeSize
sinobjectsampler3D1
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.