dawn-cmake/test/ptr_ref/load/param/ptr.wgsl.expected.msl

14 lines
218 B
Plaintext

#include <metal_stdlib>
using namespace metal;
int func(int value, thread int* const pointer) {
return (value + *(pointer));
}
kernel void tint_symbol() {
int i = 123;
int const r = func(i, &(i));
return;
}