Returns the floating-point remainder of x/y.
|ret fmod(x, y)|
[in] The floating-point dividend.
[in] The floating-point divisor.
The floating-point remainder of the x parameter divided by the y parameter.
The floating-point remainder is calculated 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.
|Name||Template Type||Component Type||Size|
|x||scalar, vector, or matrix||float||any|
|y||same as input x||float||same dimension(s) as input x|
|ret||same as input x||float||same dimension(s) as input x|
This function is supported in the following shader models.
|Shader Model 2 (DirectX HLSL) and higher shader models||yes|
|Shader Model 1 (DirectX HLSL)||vs_1_1|