Returns the floating point remainder f of x / y such that x = i * y + f, where i is an integer, f has the same sign as x, and the absolute value of f is less than the absolute value of y.
| ret fmod(x, y) |
|---|
Where:
| Name | In/Out | Template Type | Component Type | Size |
|---|---|---|---|---|
| x | in | scalar, vector, or matrix | float | any |
| y | 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 |