dp2 (sm4 - asm)
2-dimensional vector dot-product of components rg, POS-swizzle.
dp2[_sat] dest[.mask], [-]src0[_abs][.swizzle], [-]src1[_abs][.swizzle] |
---|
Item | Description |
---|---|
dest |
[in] The address of the result of the operation. dest = src0.r * src1.r + src0.g * src1.g |
src0 |
[in] The components in the operation. |
src1 |
[in] The components in the operation. |
Remarks
Scalar result replicated to components in write mask.
This instruction applies to the following shader stages:
Vertex Shader | Geometry Shader | Pixel Shader |
---|---|---|
x | x | x |
Minimum Shader Model
This function is supported in the following shader models.
Shader Model | Supported |
---|---|
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 |