diff options
Diffstat (limited to 'chromium/third_party/glslang/src/Test/420_size_gl_in.geom')
-rw-r--r-- | chromium/third_party/glslang/src/Test/420_size_gl_in.geom | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/chromium/third_party/glslang/src/Test/420_size_gl_in.geom b/chromium/third_party/glslang/src/Test/420_size_gl_in.geom new file mode 100644 index 00000000000..0fc1cd96ca3 --- /dev/null +++ b/chromium/third_party/glslang/src/Test/420_size_gl_in.geom @@ -0,0 +1,21 @@ +#version 420 core + +// testing input arrays without a gl_in[] block redeclaration, see 400.geom for with + +int i; + +layout(triangles) in; +in vec4 colorun[]; +in vec4 color3[3]; + +void foo() +{ + gl_in.length(); + gl_in[1].gl_Position; + gl_in.length(); + gl_in[i].gl_Position; // should be sized to 3 by 'triangles' +} + +in gl_PerVertex { // ERROR, already used + vec4 gl_Position; +} gl_in[]; |