crs - vs

Computes a cross product using the right-hand rule.

Syntax

crs dst, src0, src1

where

Remarks

Vertex shader versions 1_1 2_0 2_x 2_sw 3_0 3_sw
crs x x x x x

This instruction works as shown here.

dest.x = src0.y * src1.z - src0.z * src1.y;
dest.y = src0.z * src1.x - src0.x * src1.z;
dest.z = src0.x * src1.y - src0.y * src1.x;

Some restrictions on use: