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

16 lines
283 B
Plaintext

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