yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
d6be6da0
vulkan-sdk-1.4.350.0
1#version 450 core 2 3layout ( vertices = 4 ) out ; 4 5layout ( location = 1 ) patch out vec4 patchOut ; 6 7struct S { 8float sMem1 ; // should not see a patch decoration 9float sMem2 ; // should not see a patch decoration 10} ; 11 12layout ( location = 12 ) patch out TheBlock { 13highp float bMem1 ; // should not see a location decoration 14highp float bMem2 ; 15S s ; // should see a patch decoration 16} tcBlock [ 2 ] ; 17 18void main () 19{ 20gl_out [ gl_InvocationID ] . gl_Position = gl_in [ gl_InvocationID ] . gl_Position ; 21} 22 23layout ( location = 2 ) patch out SingleBlock { 24highp float bMem1 ; // should not see a location decoration 25highp float bMem2 ; 26S s ; // should see a patch decoration 27} singleBlock ; 28 29layout ( location = 20 ) patch out bn { 30vec4 v1 ; // location 20 31layout ( location = 24 ) vec4 v2 ; // location 24 32vec4 v3 ; // location 25 33} ;