dst - vs
Microsoft DirectX 9.0 SDK Update (October 2004)

dst - vs


Calculates a distance vector.

Syntax

dst dest, src0, src1

where

Remarks

Vertex shader versions1_12_02_x2_sw3_03_sw
dstxxxxxx

The following code fragment shows the operations performed:

dest.x = 1;
dest.y = src0.y * src1.y;
dest.z = src0.z;
dest.w = src1.w;

The first source operand (src0) is assumed to be the vector (ignored, d*d, d*d, ignored) and the second source operand (src1) is assumed to be the vector (ignored, 1/d, ignored, 1/d). The destination (dest) is the result vector (1, d, d*d, 1/d).



© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.