Files
wgpu/tests/in/glsl/constant-array-size.vert
João Capucho a8a316da15 [glsl-in] API revamp
The new api allows for reuse while keeping some allocations and to
please the borrow checker in future work, it also splits the parser into
logical modules to make it easier to work on.
2021-08-09 10:51:15 -04:00

17 lines
267 B
GLSL

#version 450
const int NUM_VECS = 42;
layout(std140, set = 1, binding = 0) uniform Data {
vec4 vecs[NUM_VECS];
};
vec4 function() {
vec4 sum = vec4(0);
for (int i = 0; i < NUM_VECS; i++) {
sum += vecs[i];
}
return sum;
}
void main() {}