mul (sm4 - asm)

Component-wise multiply.

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

 

ItemDescription

dest

[in] The result of the operation. dest = src0 * src1

src0

[in] The multiplicand.

src1

[in] The multiplier.

 

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-1.0-denorm-0+0denorm+1.0+F+infNaN
-inf+inf+inf+infNaNNaNNaNNaN-inf-inf-infNaN
-F+inf+F-src0+0+0-0-0src0-F-infNaN
-1+inf-src1+1.0+0+0-0-0-1.0-src1-infNaN
-denormNaN+0+0+0+0-0-0-0-0NaNNaN
-0NaN+0+0+0+0-0-0-0-0NaNNaN
+0iNaN-0-0-0-0+0+0+0+0NaNNaN
+denormNaN-0-0-0-0+0+0+0+0NaNNaN
+1.0-infsrc1-1.0-0-0+0+0+1.0src1+infNaN
+F-inf-F-src0-0-0+0+0src0+F+infNaN
+inf-inf-inf-infNaNNaNNaNNaN+inf+inf+infNaN
NaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN

 

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