GLSL: Disallow 'shared' in nested scopes.

This implements Khronos-private specification bug 16130.
This commit is contained in:
John Kessenich
2017-06-08 10:13:15 -06:00
parent c5f2ab965f
commit dd56173d04
4 changed files with 609 additions and 599 deletions

View File

@@ -1,2 +1,6 @@
#version 450 core
layout(local_size_x = 0) in; // ERROR, 0 not allowed
layout(local_size_x = 0) in; // ERROR, 0 not allowed
void main()
{
shared float f; // ERROR shared must be global
}