?/TD>
Microsoft DirectX 9.0

dcl_textureType (Pixel Shader)


Declare a pixel shader sampler register.

Syntax

dcl_textureType s#

where:

Remarks

Pixel shader versions1_11_21_31_42_02_x2_sw3_03_sw
dcl_textureTypexxxxx

All dclxxx instructions must appear before the first executable instruction.

Example

dcl_cube t0.rgb;  // Define a 3-D texture map

add r0, r0, t0;   // perturb texture coordinates 
texld r0, s0, r0; // load r0 with a color sampled from stage0
                  // at perturbed texture coordinates r0
                  // this is a dependent texture read

Minimum operating systemWindows 98


© 2002 Microsoft Corporation. All rights reserved.