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

18 lines
287 B
Plaintext

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