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

abs - vs


Computes absolute value.

Syntax

abs dst, src

where

Remarks

Vertex shader versions1_12_02_x2_sw3_03_sw
absxxxxx

This instruction works as shown here.

dest.x = abs(src.x)
dest.y = abs(src.y)
dest.z = abs(src.z)
dest.w = abs(src.w)


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