Skip to content

Latest commit

 

History

History
70 lines (37 loc) · 1.26 KB

exp---vs.md

File metadata and controls

70 lines (37 loc) · 1.26 KB
title description ms.assetid ms.topic ms.date topic_type api_name api_type api_location
exp - vs
Provides full precision exponential 2x. | exp - vs
3644046b-3257-4257-9880-146ca50f6b0b
reference
05/31/2018
apiref

exp - vs

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

Vertex shader versions 1_1 2_0 2_x 2_sw 3_0 3_sw
exp x x x x x x

 

This instruction provides at least 21 bits of precision.

The following code fragment shows the operations performed:

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

Related topics

Vertex Shader Instructions