mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-11 06:29:11 +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>
20 lines
158 B
GLSL
20 lines
158 B
GLSL
#version 310 es
|
|
precision mediump float;
|
|
|
|
struct S2 {
|
|
int m;
|
|
};
|
|
|
|
struct S1 {
|
|
S2 m;
|
|
};
|
|
|
|
void f() {
|
|
S1 v = S1(S2(0));
|
|
}
|
|
|
|
void main() {
|
|
f();
|
|
return;
|
|
}
|