dawn-cmake/test/tint/ptr_ref/load/param/private/i32.wgsl.expected.msl

18 lines
302 B
Plaintext

#include <metal_stdlib>
using namespace metal;
struct tint_private_vars_struct {
int P;
};
int func(thread int* const pointer) {
return *(pointer);
}
kernel void tint_symbol() {
thread tint_private_vars_struct tint_private_vars = {};
int const r = func(&(tint_private_vars.P));
return;
}