dawn-cmake/test/builtins/arrayLength/simple_no_struct.wgsl.expected.glsl
Stephen White 6d770093bd GLSL: fix arrayLength().
Bug: tint:1222
Change-Id: I6f9576908a41f3b37036ef7afe10cb74a99cd63f
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/79440
Reviewed-by: Ben Clayton <bclayton@google.com>
Reviewed-by: David Neto <dneto@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
2022-02-05 00:20:54 +00:00

16 lines
277 B
GLSL

#version 310 es
precision mediump float;
layout(binding = 0, std430) buffer G_block_1 {
int inner[];
} G;
void tint_symbol() {
uint l1 = uint(G.inner.length());
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
tint_symbol();
return;
}