yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
caca1d1c
main
1#version 450 2 3#extension GL_EXT_buffer_reference_uvec2 : enable 4 5layout (buffer_reference ,std430 )buffer blockType { 6layout (offset = 0 )int a ; 7layout (offset = 4 )int b ; 8layout (offset = 8 )int c ; 9layout (offset = 12 )int d ; 10layout (offset = 16 )int e ; 11}; 12 13layout (std430 )buffer t2 { 14blockType f ; 15blockType g ; 16}t ; 17 18flat in uvec2 h ,i ; 19 20void main () { 21 22blockType b1 [2 ]= blockType [2 ](blockType (h ),blockType (i )); 23b1 [0 ].a = b1 [1 ].b ; 24blockType b2 = blockType (h ); 25blockType b3 = blockType (i ); 26b2 .a = b3 .b ; 27uvec2 j = uvec2 (b2 ); 28uint carry ; 29j .x = uaddCarry (j .x ,256 ,carry ); 30j .y += carry ; 31b2 = blockType (j ); 32}