| ?/TD> | 
| Microsoft DirectX 9.0 | 
Performs a 2-D dot product and a scalar addition.
dp2add[_sat] dst[.mask], [-]src0[.swizzle], 
                         [-]src1[.swizzle],
                         [-]src2[.replicate_swizzle]
Where:
| Pixel shader versions | 1_1 | 1_2 | 1_3 | 1_4 | 2_0 | 2_x | 2_sw | 3_0 | 3_sw | 
|---|---|---|---|---|---|---|---|---|---|
| dp2add | x | x | x | x | x | 
The scalar value for add is chosen by the replicate swizzle on src2.
The following code fragment shows the operations performed.
dest = src0.r * src1.r + src0.g * src1.g + src2.selected_component // The scalar result is replicated to write mask components
| Minimum operating system | Windows 98 | 
|---|