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

16 lines
276 B
Plaintext
Raw Normal View History

#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.25f, .whole=1.0f};
float const fract = res.fract;
float const whole = res.whole;
return;
}