sqrt (sm4 - asm)
TOC
Collapse the table of content
Expand the table of content

sqrt (sm4 - asm)

Component-wise square root.

sqrt[_sat] dest[.mask], [-]src0[_abs][.swizzle]

 

ItemDescription

dest

[in] The result of the operation.

dest = sqrt(src0)

src0

[in] The components for which to take the square root.

 

Remarks

Precision is 1 ulp.

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.

-inf-F-denorm-0+0+denorm+F+infNaN
destNaNNaN-0-0+0+0+F+infNaN

 

This instruction applies to the following shader stages:

Vertex ShaderGeometry ShaderPixel Shader
xxx

 

Minimum Shader Model

This function is supported in the following shader models.

Shader ModelSupported
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

 

 

 

Show:
© 2016 Microsoft