Debian Codegraph @

third_party/spirv-cross/reference/shaders/comp/ssbo-array-length.comp

raw
1 #version 450
2 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
3
4 layout(binding = 1, std140) buffer SSBO
5 {
6 uint size;
7 float v[];
8 } _11;
9
10 void main()
11 {
12 _11.size = uint(int(uint(_11.v.length())));
13 }
14