yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
e1ff2312
16.3.0
1#version 450 core 2 3out gl_PerVertex { 4float gl_CullDistance [ 3 ] ; 5} ; 6 7void main () 8{ 9gl_CullDistance [ 2 ] = 4.5 ; 10} 11 12out bool outb ; // ERROR 13out sampler2D outo ; // ERROR 14out float outa [ 4 ] ; 15out float outaa [ 4 ][ 2 ] ; 16struct S { float f ; } ; 17out S outs ; 18out S [ 4 ] outasa ; 19out S outsa [ 4 ] ; 20struct SA { float f [ 4 ] ; } ; 21out SA outSA ; 22struct SS { float f ; S s ; } ; 23out SS outSS ; 24 25layout ( binding = 0 ) uniform atomic_uint aui ; 26uint ui ; 27 28void foo () 29{ 30SS :: f ; 31atomicCounterAdd ( aui , ui ) ; // ERROR, need 4.6 32atomicCounterSubtract ( aui , ui ) ; // ERROR, need 4.6 33atomicCounterMin ( aui , ui ) ; // ERROR, need 4.6 34atomicCounterMax ( aui , ui ) ; // ERROR, need 4.6 35atomicCounterAnd ( aui , ui ) ; // ERROR, need 4.6 36atomicCounterOr ( aui , ui ) ; // ERROR, need 4.6 37atomicCounterXor ( aui , ui ) ; // ERROR, need 4.6 38atomicCounterExchange ( aui , ui ) ; // ERROR, need 4.6 39atomicCounterCompSwap ( aui , ui , ui ) ; // ERROR, need 4.6 40 41int a = gl_BaseVertex + gl_BaseInstance + gl_DrawID ; // ERROR, need 4.6 42 43bool b1 ; 44anyInvocation ( b1 ) ; // ERROR, need 4.6 45allInvocations ( b1 ) ; // ERROR, need 4.6 46allInvocationsEqual ( b1 ) ; // ERROR, need 4.6 47} 48; // ERROR: no extraneous semicolons 49 50layout ( location = 0 ) uniform locBlock { // ERROR, no location uniform block 51int a ; 52} ; 53 54layout ( location = 0 ) buffer locBuffBlock { // ERROR, no location on buffer block 55int b ; 56} ;