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

15 lines
224 B
Plaintext
Raw Normal View History

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