Export (0) Print
Expand All
Expand Minimize

dp4 (sm4 - asm)

4-dimensional vector dot-product of components rgba, POS-swizzle.

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

 

ItemDescription

dest

[in] The result of the operation.

dest = src0.r * src1.r + src0.g * src1.g + src0.b * src1.b+ src0.a * src1.a

src0

[in] The components in the opertation.

src1

[in] The components in the opertation.

 

Remarks

Scalar result replicated to components in write mask.

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:
© 2015 Microsoft