This topic has not yet been rated - Rate this topic

round_z (sm4 - asm)

Floating-point round to integral float.

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

 

ItemDescription

dest

[in] The address of the results of the operation.

src0

[in] The components in the operation.

 

Remarks

This instruction performs a component-wise floating-point round of the values in src0, writing integral floating-point values to dest.

round_z rounds towards zero.

The following table shows the results obtained when executing the instruction with various classes of numbers.

src-inf-F-denorm-0+0+denorm+F+infNaN
dest-inf-F-0-0+0+0+F+infNaN

 

F means finite-real number.

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

 

 

 

Send comments about this topic to Microsoft

Build date: 3/5/2013

Community Additions

ADD
© 2013 Microsoft. All rights reserved.