forked from KhronosGroup/glslang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EndStreamPrimitive not supported when there is #extension GL_ARB_gpu_…
…shader5 Signed-off-by: ZhiqianXia <[email protected]>
- Loading branch information
1 parent
df609a0
commit 1b01aaa
Showing
6 changed files
with
135 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#version 150 core | ||
#extension GL_ARB_gpu_shader5 : require | ||
layout(points) in; | ||
layout(points, max_vertices = 1) out; | ||
layout(stream=0) out float output1; | ||
layout(stream=0) out float output2; | ||
layout(stream=1) out float output3; | ||
layout(stream=1) out float output4; | ||
uniform uint stream; | ||
void main() { | ||
|
||
output1 = 1.0; | ||
output2 = 2.0; | ||
EmitStreamVertex(0); | ||
EndStreamPrimitive(0); | ||
output3 = 3.0; | ||
output4 = 4.0; | ||
EmitStreamVertex(1); | ||
EndStreamPrimitive(1); | ||
} |
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,97 @@ | ||
EndStreamPrimitive.geom | ||
WARNING: 0:2: '#extension' : extension is only partially supported: GL_ARB_gpu_shader5 | ||
|
||
Shader version: 150 | ||
Requested GL_ARB_gpu_shader5 | ||
invocations = -1 | ||
max_vertices = 1 | ||
input primitive = points | ||
output primitive = points | ||
0:? Sequence | ||
0:10 Function Definition: main( ( global void) | ||
0:10 Function Parameters: | ||
0:12 Sequence | ||
0:12 move second child to first child ( temp float) | ||
0:12 'output1' (layout( stream=0) out float) | ||
0:12 Constant: | ||
0:12 1.000000 | ||
0:13 move second child to first child ( temp float) | ||
0:13 'output2' (layout( stream=0) out float) | ||
0:13 Constant: | ||
0:13 2.000000 | ||
0:14 EmitStreamVertex ( global void) | ||
0:14 Constant: | ||
0:14 0 (const int) | ||
0:15 EndStreamPrimitive ( global void) | ||
0:15 Constant: | ||
0:15 0 (const int) | ||
0:16 move second child to first child ( temp float) | ||
0:16 'output3' (layout( stream=1) out float) | ||
0:16 Constant: | ||
0:16 3.000000 | ||
0:17 move second child to first child ( temp float) | ||
0:17 'output4' (layout( stream=1) out float) | ||
0:17 Constant: | ||
0:17 4.000000 | ||
0:18 EmitStreamVertex ( global void) | ||
0:18 Constant: | ||
0:18 1 (const int) | ||
0:19 EndStreamPrimitive ( global void) | ||
0:19 Constant: | ||
0:19 1 (const int) | ||
0:? Linker Objects | ||
0:? 'output1' (layout( stream=0) out float) | ||
0:? 'output2' (layout( stream=0) out float) | ||
0:? 'output3' (layout( stream=1) out float) | ||
0:? 'output4' (layout( stream=1) out float) | ||
0:? 'stream' ( uniform uint) | ||
|
||
|
||
Linked geometry stage: | ||
|
||
|
||
Shader version: 150 | ||
Requested GL_ARB_gpu_shader5 | ||
invocations = 1 | ||
max_vertices = 1 | ||
input primitive = points | ||
output primitive = points | ||
0:? Sequence | ||
0:10 Function Definition: main( ( global void) | ||
0:10 Function Parameters: | ||
0:12 Sequence | ||
0:12 move second child to first child ( temp float) | ||
0:12 'output1' (layout( stream=0) out float) | ||
0:12 Constant: | ||
0:12 1.000000 | ||
0:13 move second child to first child ( temp float) | ||
0:13 'output2' (layout( stream=0) out float) | ||
0:13 Constant: | ||
0:13 2.000000 | ||
0:14 EmitStreamVertex ( global void) | ||
0:14 Constant: | ||
0:14 0 (const int) | ||
0:15 EndStreamPrimitive ( global void) | ||
0:15 Constant: | ||
0:15 0 (const int) | ||
0:16 move second child to first child ( temp float) | ||
0:16 'output3' (layout( stream=1) out float) | ||
0:16 Constant: | ||
0:16 3.000000 | ||
0:17 move second child to first child ( temp float) | ||
0:17 'output4' (layout( stream=1) out float) | ||
0:17 Constant: | ||
0:17 4.000000 | ||
0:18 EmitStreamVertex ( global void) | ||
0:18 Constant: | ||
0:18 1 (const int) | ||
0:19 EndStreamPrimitive ( global void) | ||
0:19 Constant: | ||
0:19 1 (const int) | ||
0:? Linker Objects | ||
0:? 'output1' (layout( stream=0) out float) | ||
0:? 'output2' (layout( stream=0) out float) | ||
0:? 'output3' (layout( stream=1) out float) | ||
0:? 'output4' (layout( stream=1) out float) | ||
0:? 'stream' ( uniform uint) | ||
|
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