?/TD>
Microsoft DirectX 9.0

abs (Pixel Shader)


Computes absolute value.

Syntax

abs dst, src

where

Remarks

Pixel shader versions1_11_21_31_42_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)

Instruction Information

Minimum operating systemWindows 98


© 2002 Microsoft Corporation. All rights reserved.