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

ddx - HLSL


Returns the partial derivative of x with respect to the screen-space x coordinate.

Syntax

ret ddx(x)

Where:

NameIn/OutTemplate TypeComponent TypeSize
xinscalar, vector, or matrixfloatany
retoutsame as input xfloatsame dimension(s) as input x

Minimum Shader Version

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

Vertex ShaderPixel Shader
n/aps_2_x


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