-
Notifications
You must be signed in to change notification settings - Fork 863
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix incorrect error when multiple compilation units don't declare lay…
…outs (#2238) when using multiple compilation units, input/output layouts don't need to be declared in every unit.
- Loading branch information
Showing
6 changed files
with
89 additions
and
5 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,63 @@ | ||
contradict_0.geom | ||
Shader version: 330 | ||
invocations = -1 | ||
max_vertices = 4 | ||
input primitive = points | ||
output primitive = triangle_strip | ||
0:? Sequence | ||
0:8 Function Definition: main( ( global void) | ||
0:8 Function Parameters: | ||
0:10 Sequence | ||
0:10 Sequence | ||
0:10 move second child to first child ( temp float) | ||
0:10 'v' ( temp float) | ||
0:10 Function Call: getV( ( global float) | ||
0:11 EndPrimitive ( global void) | ||
0:12 EndPrimitive ( global void) | ||
0:? Linker Objects | ||
|
||
contradict_1.geom | ||
Shader version: 330 | ||
invocations = -1 | ||
max_vertices = 6 | ||
input primitive = lines | ||
output primitive = line_strip | ||
0:? Sequence | ||
0:6 Function Definition: getV( ( global float) | ||
0:6 Function Parameters: | ||
0:8 Sequence | ||
0:8 Branch: Return with expression | ||
0:8 Constant: | ||
0:8 1.000000 | ||
0:? Linker Objects | ||
|
||
|
||
Linked geometry stage: | ||
|
||
ERROR: Linking geometry stage: Contradictory layout max_vertices values | ||
ERROR: Linking geometry stage: Contradictory input layout primitives | ||
ERROR: Linking geometry stage: Contradictory output layout primitives | ||
|
||
Shader version: 330 | ||
invocations = 1 | ||
max_vertices = 4 | ||
input primitive = points | ||
output primitive = triangle_strip | ||
0:? Sequence | ||
0:8 Function Definition: main( ( global void) | ||
0:8 Function Parameters: | ||
0:10 Sequence | ||
0:10 Sequence | ||
0:10 move second child to first child ( temp float) | ||
0:10 'v' ( temp float) | ||
0:10 Function Call: getV( ( global float) | ||
0:11 EndPrimitive ( global void) | ||
0:12 EndPrimitive ( global void) | ||
0:6 Function Definition: getV( ( global float) | ||
0:6 Function Parameters: | ||
0:8 Sequence | ||
0:8 Branch: Return with expression | ||
0:8 Constant: | ||
0:8 1.000000 | ||
0:? Linker Objects | ||
|
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,13 @@ | ||
#version 330 | ||
|
||
layout(points) in; | ||
layout(triangle_strip, max_vertices = 4) out; | ||
|
||
float getV(); | ||
|
||
void main (void) | ||
{ | ||
float v = getV(); | ||
EndPrimitive(); | ||
EndPrimitive(); | ||
} |
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 330 | ||
|
||
layout(lines) in; | ||
layout(line_strip, max_vertices = 6) out; | ||
|
||
float getV() | ||
{ | ||
return 1.0; | ||
} |
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