dawn-cmake/test/intrinsics/ignore/runtime_array.wgsl.expected.glsl
James Price 1461b032aa glsl: Don't emit structs with runtime-sized arrays
The GLSL emitted for these was invalid, and we don't need these
structs since they're only used as the store types of buffers, which
are handled elsewhere.

Change-Id: I17c15e408b5c36e9b895e5950528a6d02d1802a6
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/72381
Reviewed-by: Stephen White <senorblanco@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
2021-12-09 18:54:35 +00:00

23 lines
347 B
GLSL

intrinsics/ignore/runtime_array.wgsl:9:5 warning: use of deprecated intrinsic
ignore(s.arr);
^^^^^^
#version 310 es
precision mediump float;
layout (binding = 0) buffer S_1 {
int arr[];
} s;
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void tint_symbol() {
s.arr;
return;
}
void main() {
tint_symbol();
}