dawn-cmake/test/tint/builtins/modf/scalar/const.wgsl.expected.msl

16 lines
288 B
Plaintext

#include <metal_stdlib>
using namespace metal;
struct modf_result_f32 {
float fract;
float whole;
};
kernel void tint_symbol() {
modf_result_f32 const res = modf_result_f32{.fract=0.25f, .whole=1.0f};
float const fract = res.fract;
float const whole = res.whole;
return;
}