mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-11 17:13:30 +00:00
Allow module-scope declarations to be made in any order. Bug: tint:1266 Change-Id: Ib2607b6c33fad7c83e2c36f85b0a965eac922ec5 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/79769 Reviewed-by: David Neto <dneto@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
19 lines
267 B
Plaintext
19 lines
267 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
struct S {
|
|
int m;
|
|
};
|
|
|
|
struct tint_array_wrapper {
|
|
S arr[4];
|
|
};
|
|
|
|
fragment void f() {
|
|
thread tint_array_wrapper tint_symbol_1 = {};
|
|
S const tint_symbol = {.m=1};
|
|
tint_symbol_1.arr[0] = tint_symbol;
|
|
return;
|
|
}
|
|
|