-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Treat as external the global fields of an interface block (#431), fixes
#430 Interface blocks without an instance name introduce external global variables.
- Loading branch information
1 parent
0e40701
commit 9e53909
Showing
6 changed files
with
40 additions
and
10 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
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,18 @@ | ||
// Generated with (https://github.com/laurentlb/Shader_Minifier/) | ||
#ifndef SHADER_MINIFIER_IMPL | ||
#ifndef SHADER_MINIFIER_HEADER | ||
# define SHADER_MINIFIER_HEADER | ||
# define VAR_field "U" | ||
#endif | ||
|
||
#else // if SHADER_MINIFIER_IMPL | ||
|
||
// tests/unit/interface-block-renaming1.frag | ||
"#version 460\n" | ||
"uniform Uniform1{vec4 U;};", | ||
|
||
// tests/unit/interface-block-renaming2.frag | ||
"#version 460\n" | ||
"uniform Uniform1{vec4 U;};", | ||
|
||
#endif |
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,4 @@ | ||
#version 460 | ||
// https://github.com/laurentlb/shader-minifier/issues/430 | ||
uniform Uniform1 { vec4 field; }; | ||
//uniform Uniform2 { vec4 field; } instance; // TODO |
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,4 @@ | ||
#version 460 | ||
// https://github.com/laurentlb/shader-minifier/issues/430 | ||
uniform Uniform1 { vec4 field; }; | ||
//uniform Uniform2 { vec4 field; } instance; // TODO |