blob: 98afddbafc9de529d3c6cd0b2c73fb9587dfc34e [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct modf_result_f32 {
float fract;
float whole;
};
[[max_total_threads_per_threadgroup(1)]]
kernel void v() {
modf_result_f32 const res = modf_result_f32{.fract=0.25f, .whole=1.0f};
float const fract = res.fract;
float const whole = res.whole;
}