yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
344a03c0
16.5.0
1#version 450 2 3#extension GL_ARB_gpu_shader_int64 : enable 4#extension GL_EXT_buffer_reference : enable 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 ; 12} ; 13 14layout ( std430 ) buffer t2 { 15blockType f ; 16blockType g ; 17} t ; 18 19flat in uint64_t h , i ; 20 21void main () { 22 23blockType b1 [ 2 ] = blockType [ 2 ]( blockType ( h ) , blockType ( i )) ; 24b1 [ 0 ] . a = b1 [ 1 ] . b ; 25blockType b2 = blockType ( h ) ; 26blockType b3 = blockType ( i ) ; 27b2 . a = b3 . b ; 28uint64_t j = uint64_t ( b2 ) ; 29b2 = blockType ( j + 256 ) ; 30}