Partial precision logp2(x).
| logp dst, src |
|---|
where
| Vertex shader versions | 1_1 | 2_0 | 2_x | 2_sw | 3_0 | 3_sw |
|---|---|---|---|---|---|---|
| logp | x | x | x | x | x | x |
The following code fragment shows the operations performed.
float f = abs(src);
if (f != 0)
dest.x = dest.y = dest.z = dest.w = (float)(log(f)/log(2));
else
dest.x = dest.y = dest.z = dest.w = -FLT_MAX;
This instruction provides logarithm base 2 partial precision, up to 10 bits.