dawn-cmake/test/statements/assign/phony/multiple_side_effects.wgsl....

16 lines
339 B
Plaintext

#include <metal_stdlib>
using namespace metal;
int f(int a, int b, int c) {
return as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(a) * as_type<uint>(b)))) + as_type<uint>(c)));
}
void phony_sink(int p0, int p1, int p2) {
}
kernel void tint_symbol() {
phony_sink(f(1, 2, 3), f(4, 5, 6), f(7, f(8, 9, 10), 11));
return;
}