2019-05-27 09:59:29 +00:00
|
|
|
#version 450
|
|
|
|
layout(local_size_x = 1) in;
|
|
|
|
layout(set = 0, binding = 1, std140) buffer SSBO
|
|
|
|
{
|
|
|
|
uint size;
|
|
|
|
float v[];
|
|
|
|
};
|
|
|
|
|
|
|
|
layout(set = 1, binding = 2, std430) buffer SSBO1
|
|
|
|
{
|
|
|
|
float bz[];
|
|
|
|
} ssbos[2];
|
|
|
|
|
2019-05-27 14:44:02 +00:00
|
|
|
layout(set = 2, binding = 5, std140) buffer SSBO2
|
2019-05-27 09:59:29 +00:00
|
|
|
{
|
|
|
|
uint size2;
|
|
|
|
float w[];
|
|
|
|
};
|
|
|
|
|
|
|
|
layout(set = 3, binding = 2, std430) buffer SSBO3
|
|
|
|
{
|
|
|
|
float bz[];
|
|
|
|
} ssbos2[2];
|
|
|
|
|
|
|
|
|
|
|
|
uint get_size()
|
|
|
|
{
|
|
|
|
uint len = v.length();
|
|
|
|
len += ssbos[1].bz.length();
|
|
|
|
len += w.length();
|
|
|
|
len += ssbos2[0].bz.length();
|
|
|
|
return len;
|
|
|
|
}
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
size = get_size();
|
|
|
|
}
|