rsq (sm4 - asm)
Component-wise reciprocal square root.
rsq[_sat] dest[.mask], [-]src0[_abs][.swizzle] |
---|
Item | Description |
---|---|
dest |
[in] Contains the results of the operation. dest = 1.0f / sqrt(src0) |
src0 |
[in] The components for the operation. |
Remarks
The maximum relative error is 2-21.
The following table shows the results obtained when executing the instruction with various classes of numbers, assuming that neither overflow or underflow occurs.
F means finite-real number.
src | -inf | -F | -denorm | -0 | +0 | +denorm | +F | +inf | NaN |
---|---|---|---|---|---|---|---|---|---|
dest | NaN | NaN | -inf | -inf | +inf | +inf | +F | +0 | NaN |
This instruction applies to the following shader stages:
Vertex Shader | Geometry Shader | Pixel Shader |
---|---|---|
x | x | x |
Minimum Shader Model
This function is supported in the following shader models.
Shader Model | Supported |
---|---|
Shader Model 5 | yes |
Shader Model 4.1 | yes |
Shader Model 4 | yes |
Shader Model 3 (DirectX HLSL) | no |
Shader Model 2 (DirectX HLSL) | no |
Shader Model 1 (DirectX HLSL) | no |