Returns the mantissa and exponent of x. The return value of the function is the mantissa, and the exponent is returned by exp. If x is 0, the function returns 0 for both the mantissa and the exponent.
| ret frexp(x, out exp) |
|---|
Where:
| Name | In/Out | Template Type | Component Type | Size |
|---|---|---|---|---|
| x | in | scalar, vector, or matrix | float | any |
| exp | in | same as input x | float | same dimension(s) as input x |
| ret | out | same as input x | float | same dimension(s) as input x |
This intrinsic function is supported in the following (or above) shader versions:
| Vertex Shader | Pixel Shader |
|---|---|
| vs_1_1 | ps_2_0 |