SPIRV-Cross/shaders-msl/comp/array-length.comp

23 lines
299 B
Plaintext
Raw Normal View History

#version 450
layout(local_size_x = 1) in;
layout(set = 0, binding = 1, std140) buffer SSBO
{
uint size;
float v[];
};
layout(set = 0, binding = 2, std430) buffer SSBO1
{
float bz[];
} ssbos[2];
uint get_size()
{
return v.length() + ssbos[1].bz.length();
}
void main()
{
size = get_size();
}