dawn-cmake/test/bug/tint/1385.wgsl.expected.msl

17 lines
321 B
Plaintext

#include <metal_stdlib>
using namespace metal;
struct tint_symbol_3 {
/* 0x0000 */ int arr[1];
};
int foo(const device int (*const tint_symbol_1)[1]) {
return (*(tint_symbol_1))[0];
}
kernel void tint_symbol(const device tint_symbol_3* tint_symbol_2 [[buffer(0)]]) {
foo(&((*(tint_symbol_2)).arr));
return;
}