• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 450
2layout(local_size_x = 1) in;
3layout(set = 0, binding = 1, std140) buffer SSBO
4{
5	uint size;
6	float v[];
7};
8
9layout(set = 1, binding = 2, std430) buffer SSBO1
10{
11	float bz[];
12} ssbos[2];
13
14layout(set = 2, binding = 5, std140) buffer SSBO2
15{
16	uint size2;
17	float w[];
18};
19
20layout(set = 3, binding = 2, std430) buffer SSBO3
21{
22	float bz[];
23} ssbos2[2];
24
25
26uint get_size()
27{
28	uint len = v.length();
29	len += ssbos[1].bz.length();
30	len += w.length();
31	len += ssbos2[0].bz.length();
32	return len;
33}
34
35void main()
36{
37	size = get_size();
38}
39