dawn-cmake/test/bug/tint/998.wgsl.expected.msl
Ben Clayton f242fb9f7e test: Add test case for tint:998
Bug: tint:998
Change-Id: I6c8b8f7ec9a9b6d5a721fa01bab647641e33b3b2
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/58281
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: David Neto <dneto@google.com>
2021-07-15 20:29:09 +00:00

23 lines
392 B
Plaintext

#include <metal_stdlib>
using namespace metal;
struct Constants {
/* 0x0000 */ uint zero;
};
struct Result {
/* 0x0000 */ uint value;
};
struct tint_array_wrapper {
uint arr[3];
};
struct S {
tint_array_wrapper data;
};
kernel void tint_symbol(constant Constants& constants [[buffer(0)]]) {
thread S tint_symbol_1 = {};
tint_symbol_1.data.arr[constants.zero] = 0u;
return;
}