dawn-cmake/test/unittest/reader/spirv/SpvParserMemoryTest_ArrayLength_FromAccessChain.spvasm.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

35 lines
488 B
GLSL

SKIP: FAILED
#version 310 es
precision mediump float;
struct S {
uint first;
uint rtarr[];
};
layout(binding = 0, std430) buffer S_1 {
uint first;
uint rtarr[];
} myvar;
void main_1() {
uint x_1 = uint(myvar.rtarr.length());
return;
}
void tint_symbol() {
main_1();
}
void main() {
tint_symbol();
return;
}
Error parsing GLSL shader:
ERROR: 0:6: '' : array size required
ERROR: 0:7: '' : compilation terminated
ERROR: 2 compilation errors. No code generated.