Export (0) Print
Expand All
Expand Minimize

add (sm4 - asm)

Component-wise add of 2 vectors.

add[_sat] dest[.mask], [-]src0[_abs][.swizzle], [-]src1[_abs][.swizzle]

 

ItemDescription

dest

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

src0

[in] The vector to add to src1.

src1

[in] The vector to add to src0.

 

Remarks

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.

src0 src1->-inf-F-denorm-0+0denorm+F+infNaN
-inf-inf-inf-inf-inf-inf-inf-infNaNNaN
-F-inf-Fsrc0src0src0src0+-F or +-0+infNaN
-denorm-infsrc1-0-0+0+0src1+infNaN
-0-infsrc1-0-0+0+0src1+infNaN
+0i-infsrc1+0+0+0+0src1+infNaN
+denorm-infsrc1+0+0+0+0src1+infNaN
+F-inf+-F or +-0src0src0src0src0+F+infNaN
+infNaN+inf+inf+inf+inf+inf+inf+infNaN
NaNNaNNaNNaNNaNNaNNaNNaNNaNNaN

 

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

 

 

 

Community Additions

ADD
Show:
© 2014 Microsoft