mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-26 08:44:08 +00:00
6c062087fa
Adds constant evaluation for addition, and uses it for globals and array specifiers.
9 lines
96 B
GLSL
9 lines
96 B
GLSL
#version 450 core
|
|
|
|
const int N = 5;
|
|
|
|
float foo[2+N];
|
|
|
|
void main() {
|
|
gl_Position = vec4(1);
|
|
} |