dawn-cmake/test/tint/ptr_ref/store/global/i32.spvasm.expected.msl

21 lines
406 B
Plaintext
Raw Normal View History

#include <metal_stdlib>
using namespace metal;
struct tint_private_vars_struct {
int I;
};
void main_1(thread tint_private_vars_struct* const tint_private_vars) {
(*(tint_private_vars)).I = 123;
(*(tint_private_vars)).I = 123;
return;
}
kernel void tint_symbol() {
thread tint_private_vars_struct tint_private_vars = {};
tint_private_vars.I = 0;
main_1(&(tint_private_vars));
return;
}