dawn-cmake/test/tint/ptr_ref/store/global/struct_field.spvasm.expecte...

23 lines
367 B
Plaintext

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