title | description | ms.assetid | ms.topic | ms.date | topic_type | api_name | api_type | api_location | |
---|---|---|---|---|---|---|---|---|---|
dst - vs |
Calculates a distance vector. | dst - vs |
4315a29f-58e7-427f-aaa0-1fe1a81eb392 |
reference |
05/31/2018 |
|
Calculates a distance vector.
dst dest, src0, src1 |
---|
where
- dest is the destination register.
- src0 is a source register.
- src1 is a source register.
Vertex shader versions | 1_1 | 2_0 | 2_x | 2_sw | 3_0 | 3_sw |
---|---|---|---|---|---|---|
dst | x | x | x | x | x | x |
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).