exp - ps

Provides full precision exponential 2x.

Syntax

exp dst, src

 

where

  • dst is the destination register.
  • src is a 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. See Source Register Swizzling.

Remarks

Pixel shader versions1_11_21_31_42_02_x2_sw3_03_sw
expxxxxx

 

The following code snippet shows the operations performed:



dest.x = dest.y = dest.z = dest.w = (float)pow(2, src.replicateSwizzleComponent);


 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.