-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial GLSL constant evaluation implementation
Adds constant evaluation for addition, and uses it for globals and array specifiers.
- Loading branch information
1 parent
c9fea37
commit d4b6d96
Showing
3 changed files
with
206 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#version 450 core | ||
|
||
const int N = 5; | ||
|
||
float foo[2+N]; | ||
|
||
void main() { | ||
gl_Position = vec4(1); | ||
} |
Oops, something went wrong.