yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
e2ab21f2
main
1#version 450 core 2#extension GL_KHR_memory_scope_semantics : enable 3#extension GL_KHR_cooperative_matrix : enable 4#extension GL_NV_cooperative_vector : enable 5#extension GL_EXT_shader_explicit_arithmetic_types : enable 6#extension GL_EXT_buffer_reference : enable 7#extension GL_EXT_shader_64bit_indexing : enable 8 9#pragma promote_uint32_indices 10 11layout (local_size_x = 64, local_size_y = 1, local_size_z = 1) in; 12 13layout(set = 0, binding = 0, buffer_reference) coherent buffer Block { 14 float x[]; 15} block; 16 17void main() 18{ 19 uint32_t element = 3000000000u; 20 21 float y = block.x[element]; 22 y = block.x[4000000000u]; 23 y = block.x[5000000000ul]; 24}