texldd - ps

Samples a texture with additional gradient inputs.

Syntax

texldd, dst, src0, src1, src2, src3

 

Where:

  • dst is a destination register.
  • src0 is a source register that provides the texture coordinates for the texture sample. See Texture Coordinate Register.
  • src1 identifies the source sampler register (s#), where # specifies which texture sampler number to sample. The sampler has associated with it a texture and a control state defined by the D3DSAMPLERSTATETYPE enumeration (ex. D3DSAMP_MINFILTER).
  • src2 is an input source register that specifies the x gradient.
  • src3 is an input source register that specifies the y gradient.

Remarks

Pixel shader versions1_11_21_31_42_02_x2_sw3_03_sw
texlddx *xxx

 

* This instruction is only supported by ps_2_a. It is not supported by ps_2_b. For more information about profiles, see D3DXGetPixelShaderProfile.

This instruction samples a texture using the texture coordinates at src0, the sampler specified by src1, and the gradients DSX and DSY coming from src2 and src3. The x and y gradient values are used to select the appropriate mipmap level of the texture for sampling.

All sources support arbitrary swizzles.

All write masks are valid on the destination.

 

 

Community Additions

ADD
Show:
© 2014 Microsoft