dcl_samplerType - ps
Microsoft DirectX 9.0 SDK Update (October 2004)

dcl_samplerType - ps


Declare a pixel shader sampler.

Syntax

dcl_samplerType s#

where:

Remarks

Pixel shader versions1_11_21_31_42_02_x2_sw3_03_sw
dcl_samplerTypexxxxx

All dcl_samplerType 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.



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