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

pow - vs


Full precision abs(src0)src1.

Syntax

pow dst, src0, src1

where

Remarks

Vertex shader versions1_12_02_x2_sw3_03_sw
powxxxxx

This instruction works as shown here.

dest = pow(abs(src0), src1);

This is a scalar instruction, therefore the source registers should have replicate swizzles to indicate which channels are used.

The scalar result is replicated to all four output channels.

This instruction could be expanded as exp(src1 * log(src0)).

Precision is not lower than 15 bits.

The dest register should be a temporary register, and should not be the same register as src1.



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