mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 22:11:01 +01:00
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);
|
|
} |