mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-05 06:03:34 +00:00
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>
23 lines
392 B
Plaintext
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;
|
|
}
|
|
|