dph dest, src0, src1
| Name | Registers |
|---|---|
| dest | An output register or temporary register. |
| src0 | A temporary register, input register, or floating-point constant register. |
| src1 | A temporary register, input register, or floating-point constant register. |
You cannot specify a floating-point constant register for both src0 and src1.
You cannot specify input registers using different indices for src0 and src1 at the same time.
Calculates the three-component dot product of src0 and src1, adds the value of w from src1, and stores the result in dest.
dot = ( src0.x * src1.x ) + ( src0.y * src1.y ) + ( src0.z * src1.z )+ src1.w dest.x = dot dest.y = dot dest.z = dot dest.w = dot
dph r0, c1, v2 dph o0, r7.yzwx, c4.xxyw
| 1 | 2 | 3 | 4 | 5 | 6 | ||
|---|---|---|---|---|---|---|---|
| dph | read | MUL | ADD | ADD | post | write |
CONFIDENTIAL