SPIRV-Cross/shaders-hlsl/comp/ssbo-array-length.comp
2019-05-07 15:53:41 +02:00

13 lines
157 B
Plaintext

#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();
}