?/TD> |
Microsoft DirectX 9.0 |
Computes the reciprocal of the source scalar.
rcp dst, src |
---|
where
Pixel shader versions | 1_1 | 1_2 | 1_3 | 1_4 | 2_0 | 2_x | 2_sw | 3_0 | 3_sw |
---|---|---|---|---|---|---|---|---|---|
rcp | x | x | x | x | x |
The output must be exactly 1.0 if the input is exactly 1.0. A source of 0.0 yields infinity.
The scalar result is replicated to all channels in the destination write mask.
Precision should be at least 1.0/(222) absolute error over the range (1.0, 2.0) because common implementations will separate mantissa and exponent.
Minimum operating system | Windows 98 |
---|