dawn-cmake/test/tint/expressions/binary/div/scalar-scalar/u32.wgsl.expected.msl

15 lines
240 B
Plaintext
Raw Normal View History

#include <metal_stdlib>
using namespace metal;
uint tint_div(uint lhs, uint rhs) {
return (lhs / select(rhs, 1u, (rhs == 0u)));
}
kernel void f() {
uint const a = 1u;
uint const b = 2u;
uint const r = tint_div(a, b);
return;
}