Splits the value x into fractional and integer parts, each of which has the same sign as x. The signed fractional portion of x is returned. The integer portion is stored in the output parameter ip.
ret modf(x, out ip) |
---|
Where:
Name | In/Out | Template Type | Component Type | Size |
---|---|---|---|---|
x | in | scalar, vector, or matrix | float, int | any |
ip | out | same as input x | float, int | same dimension(s) as input x |
ret | out | same as input x | float, int | 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 |