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

15 lines
224 B
Plaintext

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