expp - vs

부분 정밀도 지수 2x를 제공합니다.

Syntax

expp dst, src.{x|y|z|w}

 

여기서

  • dst는 대상 레지스터입니다.
  • src는 원본 레지스터입니다. 원본 레지스터에는 복제 swizzle을 명시적으로 사용해야 합니다. 즉, .x, .y, .z, .w swizzle 성분(또는 .r, .g, .b, .a 해당 항목) 중 정확히 하나를 지정해야 합니다.
  • {x|y|z|w}는 원본 레지스터의 필수 복제 혼합입니다.

설명

꼭짓점 셰이더 버전 1_1 2_0 2_x 2_sw 3_0 3_sw
expp x x x x x x

 

vs_1_1

exp - vs 명령은 꼭짓점 셰이더 버전에 따라 다르게 작동합니다.

vs_1_1에서 expp 명령은 다음 결과를 제공합니다.

v = the scalar value from the source register with a replicate swizzle

dest.x = pow(2, floor(v))
dest.y = v - floor(v)
dest.z = pow(2, v) (partial-precision)
dest.w = 1

vs_2_0 이상에서 expp 명령은 다음 결과를 제공합니다.

v = the scalar value from the source register with a replicate swizzle

dest.x = dest.y = dest.z = dest.y = pow(2, v) (partial-precision)

vs_2_0

vs_2_0 이상에서 명령은 다음과 같이 작동합니다.

float V = the scalar value from the source register with a replicate swizzle

dest.x = dest.y = dest.z = dest.y = pow( 2, V ) (partial-precision)

명령은 최소 10비트의 정밀도를 제공합니다.

꼭짓점 셰이더 명령