dawn-cmake/test/out_of_order_decls/array/struct.wgsl.expected.glsl
Ben Clayton 6688b0a3c7 resolver: Enable support of out of order declarations
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>
2022-02-11 12:59:08 +00:00

18 lines
198 B
GLSL

#version 310 es
precision mediump float;
struct S {
int m;
};
S A[4] = S[4](S(0), S(0), S(0), S(0));
void f() {
S tint_symbol = S(1);
A[0] = tint_symbol;
}
void main() {
f();
return;
}