yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
344a03c0
main
1#version 450 2 3#extension GL_EXT_buffer_reference : enable 4#pragma use_vulkan_memory_model 5 6layout (buffer_reference ,std430 )buffer blockType { 7layout (offset = 0 )int a ; 8layout (offset = 4 )int b ; 9layout (offset = 8 )int c ; 10layout (offset = 12 )int d ; 11layout (offset = 16 )int e ; 12layout (offset = 32 )int f [2 ]; 13coherent layout (offset = 48 )ivec4 g ; 14}; 15 16layout (std430 )buffer t2 { 17blockType f ; 18blockType g ; 19}t ; 20 21void main () { 22t .f .b = t .g .a ; 23 24blockType j = t .f ; 25j .d = j .c ; 26j .d = j .f [1 ]; 27j .d = j .g .y ; 28}