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

rsq - ps


Computes the reciprocal square root (positive only) of the source scalar.

Syntax

rsq dst, src

where

Remarks

Pixel shader versions1_11_21_31_42_02_x2_sw3_03_sw
rsqxxxxx

The absolute value is taken before processing.

Precision should be at least 1.0/(222) absolute error over the range (1.0, 4.0) because common implementations will separate mantissa and exponent.

The output must be exactly 1.0 if the input is exactly 1.0. A source of 0.0 yields infinity.



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