mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-14 19:31:25 +00:00
Bug: tint:938 Fixed: tint:759 Change-Id: I5794d7f40ec154c55240b163316ed45c7f14b190 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/56547 Reviewed-by: James Price <jrprice@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com> Auto-Submit: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
19 lines
452 B
Plaintext
19 lines
452 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
struct tint_array_wrapper {
|
|
int arr[3];
|
|
};
|
|
|
|
kernel void tint_symbol(uint local_invocation_index [[thread_index_in_threadgroup]]) {
|
|
threadgroup tint_array_wrapper tint_symbol_3;
|
|
if ((local_invocation_index == 0u)) {
|
|
tint_array_wrapper const tint_symbol_2 = {.arr={}};
|
|
tint_symbol_3 = tint_symbol_2;
|
|
}
|
|
threadgroup_barrier(mem_flags::mem_threadgroup);
|
|
(void) tint_symbol_3;
|
|
return;
|
|
}
|
|
|