blob: 55d50717b049d390b97de5c95216e7c36d763a92 [file] [log] [blame]
struct modf_result_f32 {
float fract;
float whole;
};
[numthreads(1, 1, 1)]
void main() {
float runtime_in = 1.25f;
modf_result_f32 res = {0.25f, 1.0f};
float v = 0.0f;
float v_1 = modf(runtime_in, v);
modf_result_f32 v_2 = {v_1, v};
res = v_2;
modf_result_f32 v_3 = {0.25f, 1.0f};
res = v_3;
float fract = res.fract;
float whole = res.whole;
}