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

13 lines
157 B
Plaintext
Raw Normal View History

2019-05-07 13:49:38 +00:00
#version 450
layout(local_size_x = 1) in;
layout(set = 0, binding = 1, std140) buffer SSBO
{
uint size;
float v[];
};
void main()
{
size = v.length();
}