#include <metal_stdlib> | |
using namespace metal; | |
struct modf_result_f32 { | |
float fract; | |
float whole; | |
}; | |
kernel void tint_symbol() { | |
float const in = 1.25f; | |
modf_result_f32 v = {}; | |
v.fract = modf(in, v.whole); | |
modf_result_f32 const res = v; | |
float const fract = res.fract; | |
float const whole = res.whole; | |
} |