Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
8d6ce1c2
Commit
8d6ce1c2
authored
Apr 29, 2014
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve the 150.geom test.
git-svn-id:
https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@26445
e7fa87d3-cd2b-0410-9028-fcbf551c1848
parent
f000058f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
53 deletions
+55
-53
150.geom
Test/150.geom
+5
-4
150.geom.out
Test/baseResults/150.geom.out
+50
-49
No files found.
Test/150.geom
View file @
8d6ce1c2
...
@@ -62,6 +62,8 @@ layout(stream = 7) out ooutb3 {
...
@@ -62,6 +62,8 @@ layout(stream = 7) out ooutb3 {
out
vec4
ov2s3
;
// stream should be 3
out
vec4
ov2s3
;
// stream should be 3
layout
(
max_vertices
=
200
)
out
;
layout
(
max_vertices
=
300
)
out
;
// ERROR, too big
void
foo
(
layout
(
max_vertices
=
4
)
int
a
)
// ERROR
void
foo
(
layout
(
max_vertices
=
4
)
int
a
)
// ERROR
{
{
ouuaa6
.
a
=
vec4
(
1
.
0
);
ouuaa6
.
a
=
vec4
(
1
.
0
);
...
@@ -73,9 +75,9 @@ layout(triangle_strip) in; // ERROR, not an input primitive
...
@@ -73,9 +75,9 @@ layout(triangle_strip) in; // ERROR, not an input primitive
layout
(
triangle_strip
)
uniform
;
// ERROR
layout
(
triangle_strip
)
uniform
;
// ERROR
layout
(
triangle_strip
)
out
vec4
badv4
;
// ERROR, not on a variable
layout
(
triangle_strip
)
out
vec4
badv4
;
// ERROR, not on a variable
layout
(
triangle_strip
)
in
vec4
bad2v4
[];
// ERROR, not on a variable or input
layout
(
triangle_strip
)
in
vec4
bad2v4
[];
// ERROR, not on a variable or input
layout
(
invocations
=
3
)
out
outbn
{
int
a
;
};
//
ERROR, not on a block
layout
(
invocations
=
3
)
out
outbn
{
int
a
;
};
//
2 ERROR, not on a block, not until 4.0
out
outbn2
{
out
outbn2
{
layout
(
invocations
=
3
)
int
a
;
//
ERROR, not on a block member
layout
(
invocations
=
3
)
int
a
;
//
2 ERRORs, not on a block member, not until 4.0
layout
(
max_vertices
=
3
)
int
b
;
// ERROR, not on a block member
layout
(
max_vertices
=
3
)
int
b
;
// ERROR, not on a block member
layout
(
triangle_strip
)
int
c
;
// ERROR, not on a block member
layout
(
triangle_strip
)
int
c
;
// ERROR, not on a block member
}
outbi
;
}
outbi
;
...
@@ -84,8 +86,7 @@ layout(lines) out; // ERROR, not on output
...
@@ -84,8 +86,7 @@ layout(lines) out; // ERROR, not on output
layout
(
lines_adjancency
)
in
;
layout
(
lines_adjancency
)
in
;
layout
(
triangles
)
in
;
// ERROR, can't change it
layout
(
triangles
)
in
;
// ERROR, can't change it
layout
(
triangles_adjacency
)
in
;
// ERROR, can't change it
layout
(
triangles_adjacency
)
in
;
// ERROR, can't change it
layout
(
invocations
=
4
)
in
;
layout
(
invocations
=
4
)
in
;
// ERROR, not until 4.0
layout
(
max_vertices
=
300
)
out
;
in
inbn
{
in
inbn
{
layout
(
stream
=
2
)
int
a
;
// ERROR, stream on input
layout
(
stream
=
2
)
int
a
;
// ERROR, stream on input
...
...
Test/baseResults/150.geom.out
View file @
8d6ce1c2
...
@@ -10,32 +10,33 @@ ERROR: 0:46: 'stream' : can only be used on an output
...
@@ -10,32 +10,33 @@ ERROR: 0:46: 'stream' : can only be used on an output
ERROR: 0:47: 'stream' : can only be used on an output
ERROR: 0:47: 'stream' : can only be used on an output
ERROR: 0:47: 'stream' : can only be used on an output
ERROR: 0:47: 'stream' : can only be used on an output
ERROR: 0:60: 'stream' : member cannot contradict block
ERROR: 0:60: 'stream' : member cannot contradict block
ERROR: 0:6
5: 'max_vertices' : can only apply to a standalone qualifier
ERROR: 0:6
6: 'max_vertices' : too large, must be less than gl_MaxGeometryOutputVertices
ERROR: 0:
70: 'points' : cannot change previously set output primitiv
e
ERROR: 0:
66: 'max_vertices' : cannot change previously set layout valu
e
ERROR: 0:
71: 'points' : cannot change previously set output primitive
ERROR: 0:
67: 'max_vertices' : can only apply to a standalone qualifier
ERROR: 0:72: '
triangle_strip' : cannot apply to input
ERROR: 0:72: '
points' : cannot change previously set output primitive
ERROR: 0:73: '
triangle_strip' : cannot apply to: uniform
ERROR: 0:73: '
points' : cannot change previously set output primitive
ERROR: 0:74: 'triangle_strip' : can
only apply to a standalone qualifier
ERROR: 0:74: 'triangle_strip' : can
not apply to input
ERROR: 0:75: 'triangle_strip' : can
only apply to a standalone qualifier
ERROR: 0:75: 'triangle_strip' : can
not apply to: uniform
ERROR: 0:76: '
invocations' : not supported for this version or the enabled extensions
ERROR: 0:76: '
triangle_strip' : can only apply to a standalone qualifier
ERROR: 0:7
6: 'invocations
' : can only apply to a standalone qualifier
ERROR: 0:7
7: 'triangle_strip
' : can only apply to a standalone qualifier
ERROR: 0:78: 'invocations' : not supported for this version or the enabled extensions
ERROR: 0:78: 'invocations' : not supported for this version or the enabled extensions
ERROR: 0:78: 'invocations' : can only apply to a standalone qualifier
ERROR: 0:78: 'invocations' : can only apply to a standalone qualifier
ERROR: 0:79: 'max_vertices' : can only apply to a standalone qualifier
ERROR: 0:80: 'invocations' : not supported for this version or the enabled extensions
ERROR: 0:80: 'triangle_strip' : can only apply to a standalone qualifier
ERROR: 0:80: 'invocations' : can only apply to a standalone qualifier
ERROR: 0:83: 'lines' : cannot apply to 'out'
ERROR: 0:81: 'max_vertices' : can only apply to a standalone qualifier
ERROR: 0:85: 'triangles' : cannot change previously set input primitive
ERROR: 0:82: 'triangle_strip' : can only apply to a standalone qualifier
ERROR: 0:86: 'triangles_adjacency' : cannot change previously set input primitive
ERROR: 0:85: 'lines' : cannot apply to 'out'
ERROR: 0:87: 'invocations' : not supported for this version or the enabled extensions
ERROR: 0:87: 'triangles' : cannot change previously set input primitive
ERROR: 0:88: 'max_vertices' : too large, must be less than gl_MaxGeometryOutputVertices
ERROR: 0:88: 'triangles_adjacency' : cannot change previously set input primitive
ERROR: 0:91: 'stream' : member cannot contradict block
ERROR: 0:89: 'invocations' : not supported for this version or the enabled extensions
ERROR: 0:91: 'stream' : can only be used on an output
ERROR: 0:92: 'stream' : member cannot contradict block
ERROR: 31 compilation errors. No code generated.
ERROR: 0:92: 'stream' : can only be used on an output
ERROR: 32 compilation errors. No code generated.
Shader version: 150
Shader version: 150
invocations = 4
invocations = 4
max_vertices =
3
00
max_vertices =
2
00
input primitive = lines_adjancency
input primitive = lines_adjancency
output primitive = triangle_strip
output primitive = triangle_strip
ERROR: node is still EOpNull!
ERROR: node is still EOpNull!
...
@@ -109,20 +110,20 @@ ERROR: node is still EOpNull!
...
@@ -109,20 +110,20 @@ ERROR: node is still EOpNull!
0:37 'gl_Layer' (layout(stream=0 ) out int)
0:37 'gl_Layer' (layout(stream=0 ) out int)
0:37 Constant:
0:37 Constant:
0:37 2 (const int)
0:37 2 (const int)
0:6
5
Function Definition: foo(i1; (void)
0:6
7
Function Definition: foo(i1; (void)
0:6
5
Function Parameters:
0:6
7
Function Parameters:
0:6
5
'a' (in int)
0:6
7
'a' (in int)
0:6
7
Sequence
0:6
9
Sequence
0:6
7
move second child to first child (4-component vector of float)
0:6
9
move second child to first child (4-component vector of float)
0:6
7
a: direct index for structure (layout(stream=6 ) out 4-component vector of float)
0:6
9
a: direct index for structure (layout(stream=6 ) out 4-component vector of float)
0:6
7
'ouuaa6' (layout(stream=6 ) out block{layout(stream=6 ) out 4-component vector of float a})
0:6
9
'ouuaa6' (layout(stream=6 ) out block{layout(stream=6 ) out 4-component vector of float a})
0:6
7
Constant:
0:6
9
Constant:
0:6
7
0 (const int)
0:6
9
0 (const int)
0:6
7
Constant:
0:6
9
Constant:
0:6
7
1.000000
0:6
9
1.000000
0:6
7
1.000000
0:6
9
1.000000
0:6
7
1.000000
0:6
9
1.000000
0:6
7
1.000000
0:6
9
1.000000
0:? Linker Objects
0:? Linker Objects
0:? 'fromV' (in 4-element array of block{in 3-component vector of float color})
0:? 'fromV' (in 4-element array of block{in 3-component vector of float color})
0:? 'toF' (layout(stream=0 ) out block{layout(stream=0 ) out 3-component vector of float color})
0:? 'toF' (layout(stream=0 ) out block{layout(stream=0 ) out 3-component vector of float color})
...
@@ -154,7 +155,7 @@ Linked geometry stage:
...
@@ -154,7 +155,7 @@ Linked geometry stage:
Shader version: 150
Shader version: 150
invocations = 4
invocations = 4
max_vertices =
3
00
max_vertices =
2
00
input primitive = lines_adjancency
input primitive = lines_adjancency
output primitive = triangle_strip
output primitive = triangle_strip
ERROR: node is still EOpNull!
ERROR: node is still EOpNull!
...
@@ -228,20 +229,20 @@ ERROR: node is still EOpNull!
...
@@ -228,20 +229,20 @@ ERROR: node is still EOpNull!
0:37 'gl_Layer' (layout(stream=0 ) out int)
0:37 'gl_Layer' (layout(stream=0 ) out int)
0:37 Constant:
0:37 Constant:
0:37 2 (const int)
0:37 2 (const int)
0:6
5
Function Definition: foo(i1; (void)
0:6
7
Function Definition: foo(i1; (void)
0:6
5
Function Parameters:
0:6
7
Function Parameters:
0:6
5
'a' (in int)
0:6
7
'a' (in int)
0:6
7
Sequence
0:6
9
Sequence
0:6
7
move second child to first child (4-component vector of float)
0:6
9
move second child to first child (4-component vector of float)
0:6
7
a: direct index for structure (layout(stream=6 ) out 4-component vector of float)
0:6
9
a: direct index for structure (layout(stream=6 ) out 4-component vector of float)
0:6
7
'ouuaa6' (layout(stream=6 ) out block{layout(stream=6 ) out 4-component vector of float a})
0:6
9
'ouuaa6' (layout(stream=6 ) out block{layout(stream=6 ) out 4-component vector of float a})
0:6
7
Constant:
0:6
9
Constant:
0:6
7
0 (const int)
0:6
9
0 (const int)
0:6
7
Constant:
0:6
9
Constant:
0:6
7
1.000000
0:6
9
1.000000
0:6
7
1.000000
0:6
9
1.000000
0:6
7
1.000000
0:6
9
1.000000
0:6
7
1.000000
0:6
9
1.000000
0:? Linker Objects
0:? Linker Objects
0:? 'fromV' (in 4-element array of block{in 3-component vector of float color})
0:? 'fromV' (in 4-element array of block{in 3-component vector of float color})
0:? 'toF' (layout(stream=0 ) out block{layout(stream=0 ) out 3-component vector of float color})
0:? 'toF' (layout(stream=0 ) out block{layout(stream=0 ) out 3-component vector of float color})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment