dawn-cmake/test/tint/builtins/frexp/scalar/runtime.wgsl.expected.msl

23 lines
399 B
Plaintext

#include <metal_stdlib>
using namespace metal;
struct frexp_result {
float fract;
int exp;
};
frexp_result tint_frexp(float param_0) {
frexp_result result;
result.fract = frexp(param_0, result.exp);
return result;
}
kernel void tint_symbol() {
float const in = 1.25f;
frexp_result const res = tint_frexp(in);
float const fract = res.fract;
int const exp = res.exp;
return;
}