pow - ps

Full precision abs(src0)src1.

Syntax

pow dst, src0, src1

 

where

  • dst is the destination register.
  • src0 is an input source register. Source register requires explicit use of replicate swizzle, that is, exactly one of the .x, .y, .z, .w swizzle components (or the .r, .g, .b, .a equivalents) must be specified.
  • src1 is an input source register. Source register requires explicit use of replicate swizzle, that is, exactly one of the .x, .y, .z, .w swizzle components (or the .r, .g, .b, .a equivalents) must be specified.

Remarks

Pixel shader versions1_11_21_31_42_02_x2_sw3_03_sw
powxxxxx

 

This instruction works as follows:

dest.x = dest.y = dest.z = dest.w = [abs(src0)]src1;

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

The input power (src1) must be a scalar.

The scalar result is replicated to all four output channels.

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

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

Related topics

Pixel Shader Instructions

 

 

Show: