This topic has not yet been rated - Rate this topic

dp2add - ps

Performs a 2D dot product and a scalar addition.

Syntax



dp2add dst, src0, src1, src2.{x|y|z|w}


Where:

  • dst is a destination register.
  • src0, src1, and src2 are three source registers.
  • {x|y|z|w} is the required replicate swizzle on src2.

Remarks

Pixel shader versions1_11_21_31_42_02_x2_sw3_03_sw
dp2addxxxxx

 

The scalar value for add is chosen by the replicate swizzle on src2.

The following code snippet shows the operations performed.



dest = src0.r * src1.r + src0.g * src1.g + src2.replicate_swizzle
// The scalar result is replicated to the write mask components


 

 

Send comments about this topic to Microsoft

Build date: 3/5/2013

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.