-
Notifications
You must be signed in to change notification settings - Fork 817
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix xfb_stride limit issue Unsized array can't apply to transform trace. layout qualifier "offset" require GL_ARB_enhanced_layouts enable or glsl core version > 440. * Add negative test for xfb limit * update case result * Fix compile information issue Fix compile information issue and test comment issue. * remove es profile condition, use profileRequires to limit. * Fix xfb_stride limit issue Unsized array can't apply to transform trace. layout qualifier "offset" require GL_ARB_enhanced_layouts enable or glsl core version > 440. Add negative test for xfb limit * Move es profile check out of version number check * Adjust error information and related cases remove the new version check, refine original version check. * Revert condition for vulkan, and remove redundant test code.
- Loading branch information
Showing
15 changed files
with
294 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
glsl.140.layoutOffset.error.vert | ||
ERROR: 0:5: 'offset' : not supported with this profile: none | ||
ERROR: 0:5: '"offset" on block member' : not supported for this version or the enabled extensions | ||
ERROR: 2 compilation errors. No code generated. | ||
|
||
|
||
Shader version: 140 | ||
ERROR: node is still EOpNull! | ||
0:11 Function Definition: main( ( global void) | ||
0:11 Function Parameters: | ||
0:13 Sequence | ||
0:13 move second child to first child ( temp 4-component vector of float) | ||
0:13 'out_vs' ( smooth out 4-component vector of float) | ||
0:13 add ( temp 4-component vector of float) | ||
0:13 'in_vs' ( in 4-component vector of float) | ||
0:13 a: direct index for structure (layout( column_major std140 offset=0) uniform 4-component vector of float) | ||
0:13 'anon@0' (layout( column_major std140) uniform block{layout( column_major std140 offset=0) uniform 4-component vector of float a}) | ||
0:13 Constant: | ||
0:13 0 (const uint) | ||
0:? Linker Objects | ||
0:? 'anon@0' (layout( column_major std140) uniform block{layout( column_major std140 offset=0) uniform 4-component vector of float a}) | ||
0:? 'in_vs' ( in 4-component vector of float) | ||
0:? 'out_vs' ( smooth out 4-component vector of float) | ||
0:? 'gl_VertexID' ( gl_VertexId int VertexId) | ||
0:? 'gl_InstanceID' ( gl_InstanceId int InstanceId) | ||
|
||
|
||
Linked vertex stage: | ||
|
||
|
||
Shader version: 140 | ||
ERROR: node is still EOpNull! | ||
0:11 Function Definition: main( ( global void) | ||
0:11 Function Parameters: | ||
0:13 Sequence | ||
0:13 move second child to first child ( temp 4-component vector of float) | ||
0:13 'out_vs' ( smooth out 4-component vector of float) | ||
0:13 add ( temp 4-component vector of float) | ||
0:13 'in_vs' ( in 4-component vector of float) | ||
0:13 a: direct index for structure (layout( column_major std140 offset=0) uniform 4-component vector of float) | ||
0:13 'anon@0' (layout( column_major std140) uniform block{layout( column_major std140 offset=0) uniform 4-component vector of float a}) | ||
0:13 Constant: | ||
0:13 0 (const uint) | ||
0:? Linker Objects | ||
0:? 'anon@0' (layout( column_major std140) uniform block{layout( column_major std140 offset=0) uniform 4-component vector of float a}) | ||
0:? 'in_vs' ( in 4-component vector of float) | ||
0:? 'out_vs' ( smooth out 4-component vector of float) | ||
0:? 'gl_VertexID' ( gl_VertexId int VertexId) | ||
0:? 'gl_InstanceID' ( gl_InstanceId int InstanceId) | ||
|
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,49 @@ | ||
glsl.430.layoutOffset.error.vert | ||
ERROR: 0:5: '"offset" on block member' : not supported for this version or the enabled extensions | ||
ERROR: 1 compilation errors. No code generated. | ||
|
||
|
||
Shader version: 430 | ||
ERROR: node is still EOpNull! | ||
0:11 Function Definition: main( ( global void) | ||
0:11 Function Parameters: | ||
0:13 Sequence | ||
0:13 move second child to first child ( temp 4-component vector of float) | ||
0:13 'out_vs' ( smooth out 4-component vector of float) | ||
0:13 add ( temp 4-component vector of float) | ||
0:13 'in_vs' ( in 4-component vector of float) | ||
0:13 a: direct index for structure (layout( column_major std140 offset=0) uniform 4-component vector of float) | ||
0:13 'anon@0' (layout( column_major std140) uniform block{layout( column_major std140 offset=0) uniform 4-component vector of float a}) | ||
0:13 Constant: | ||
0:13 0 (const uint) | ||
0:? Linker Objects | ||
0:? 'anon@0' (layout( column_major std140) uniform block{layout( column_major std140 offset=0) uniform 4-component vector of float a}) | ||
0:? 'in_vs' ( in 4-component vector of float) | ||
0:? 'out_vs' ( smooth out 4-component vector of float) | ||
0:? 'gl_VertexID' ( gl_VertexId int VertexId) | ||
0:? 'gl_InstanceID' ( gl_InstanceId int InstanceId) | ||
|
||
|
||
Linked vertex stage: | ||
|
||
|
||
Shader version: 430 | ||
ERROR: node is still EOpNull! | ||
0:11 Function Definition: main( ( global void) | ||
0:11 Function Parameters: | ||
0:13 Sequence | ||
0:13 move second child to first child ( temp 4-component vector of float) | ||
0:13 'out_vs' ( smooth out 4-component vector of float) | ||
0:13 add ( temp 4-component vector of float) | ||
0:13 'in_vs' ( in 4-component vector of float) | ||
0:13 a: direct index for structure (layout( column_major std140 offset=0) uniform 4-component vector of float) | ||
0:13 'anon@0' (layout( column_major std140) uniform block{layout( column_major std140 offset=0) uniform 4-component vector of float a}) | ||
0:13 Constant: | ||
0:13 0 (const uint) | ||
0:? Linker Objects | ||
0:? 'anon@0' (layout( column_major std140) uniform block{layout( column_major std140 offset=0) uniform 4-component vector of float a}) | ||
0:? 'in_vs' ( in 4-component vector of float) | ||
0:? 'out_vs' ( smooth out 4-component vector of float) | ||
0:? 'gl_VertexID' ( gl_VertexId int VertexId) | ||
0:? 'gl_InstanceID' ( gl_InstanceId int InstanceId) | ||
|
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,51 @@ | ||
glsl.es300.layoutOffset.error.vert | ||
ERROR: 0:3: 'binding' : not supported for this version or the enabled extensions | ||
ERROR: 0:3: 'offset' : not supported for this version or the enabled extensions | ||
ERROR: 0:3: 'offset' : only applies to block members, not blocks | ||
ERROR: 3 compilation errors. No code generated. | ||
|
||
|
||
Shader version: 300 | ||
ERROR: node is still EOpNull! | ||
0:11 Function Definition: main( ( global void) | ||
0:11 Function Parameters: | ||
0:13 Sequence | ||
0:13 move second child to first child ( temp highp 4-component vector of float) | ||
0:13 'out_vs' ( smooth out highp 4-component vector of float) | ||
0:13 add ( temp highp 4-component vector of float) | ||
0:13 'in_vs' ( in highp 4-component vector of float) | ||
0:13 a: direct index for structure (layout( column_major shared) uniform highp 4-component vector of float) | ||
0:13 'anon@0' (layout( binding=0 column_major shared offset=0) uniform block{layout( column_major shared) uniform highp 4-component vector of float a}) | ||
0:13 Constant: | ||
0:13 0 (const uint) | ||
0:? Linker Objects | ||
0:? 'anon@0' (layout( binding=0 column_major shared offset=0) uniform block{layout( column_major shared) uniform highp 4-component vector of float a}) | ||
0:? 'in_vs' ( in highp 4-component vector of float) | ||
0:? 'out_vs' ( smooth out highp 4-component vector of float) | ||
0:? 'gl_VertexID' ( gl_VertexId highp int VertexId) | ||
0:? 'gl_InstanceID' ( gl_InstanceId highp int InstanceId) | ||
|
||
|
||
Linked vertex stage: | ||
|
||
|
||
Shader version: 300 | ||
ERROR: node is still EOpNull! | ||
0:11 Function Definition: main( ( global void) | ||
0:11 Function Parameters: | ||
0:13 Sequence | ||
0:13 move second child to first child ( temp highp 4-component vector of float) | ||
0:13 'out_vs' ( smooth out highp 4-component vector of float) | ||
0:13 add ( temp highp 4-component vector of float) | ||
0:13 'in_vs' ( in highp 4-component vector of float) | ||
0:13 a: direct index for structure (layout( column_major shared) uniform highp 4-component vector of float) | ||
0:13 'anon@0' (layout( binding=0 column_major shared offset=0) uniform block{layout( column_major shared) uniform highp 4-component vector of float a}) | ||
0:13 Constant: | ||
0:13 0 (const uint) | ||
0:? Linker Objects | ||
0:? 'anon@0' (layout( binding=0 column_major shared offset=0) uniform block{layout( column_major shared) uniform highp 4-component vector of float a}) | ||
0:? 'in_vs' ( in highp 4-component vector of float) | ||
0:? 'out_vs' ( smooth out highp 4-component vector of float) | ||
0:? 'gl_VertexID' ( gl_VertexId highp int VertexId) | ||
0:? 'gl_InstanceID' ( gl_InstanceId highp int InstanceId) | ||
|
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,69 @@ | ||
xfbUnsizedArray.error.vert | ||
ERROR: 0:4: 'xfb_offset' : unsized array in buffer 0 | ||
ERROR: 1 compilation errors. No code generated. | ||
|
||
|
||
Shader version: 430 | ||
Requested GL_ARB_enhanced_layouts | ||
in xfb mode | ||
ERROR: node is still EOpNull! | ||
0:9 Function Definition: main( ( global void) | ||
0:9 Function Parameters: | ||
0:11 Sequence | ||
0:11 Sequence | ||
0:11 move second child to first child ( temp 4-component vector of float) | ||
0:11 'result' ( temp 4-component vector of float) | ||
0:11 'in_vs' ( in 4-component vector of float) | ||
0:13 move second child to first child ( temp 4-component vector of float) | ||
0:13 direct index (layout( xfb_buffer=0 xfb_offset=0) smooth temp 4-component vector of float) | ||
0:13 'xfb_buffer' (layout( xfb_buffer=0 xfb_offset=0) smooth out unsized 1-element array of 4-component vector of float) | ||
0:13 Constant: | ||
0:13 0 (const int) | ||
0:13 divide ( temp 4-component vector of float) | ||
0:13 'result' ( temp 4-component vector of float) | ||
0:13 Constant: | ||
0:13 2.000000 | ||
0:15 move second child to first child ( temp 4-component vector of float) | ||
0:15 'out_vs' ( smooth out 4-component vector of float) | ||
0:15 'result' ( temp 4-component vector of float) | ||
0:? Linker Objects | ||
0:? 'xfb_buffer' (layout( xfb_buffer=0 xfb_offset=0) smooth out unsized 1-element array of 4-component vector of float) | ||
0:? 'in_vs' ( in 4-component vector of float) | ||
0:? 'out_vs' ( smooth out 4-component vector of float) | ||
0:? 'gl_VertexID' ( gl_VertexId int VertexId) | ||
0:? 'gl_InstanceID' ( gl_InstanceId int InstanceId) | ||
|
||
|
||
Linked vertex stage: | ||
|
||
|
||
Shader version: 430 | ||
Requested GL_ARB_enhanced_layouts | ||
in xfb mode | ||
ERROR: node is still EOpNull! | ||
0:9 Function Definition: main( ( global void) | ||
0:9 Function Parameters: | ||
0:11 Sequence | ||
0:11 Sequence | ||
0:11 move second child to first child ( temp 4-component vector of float) | ||
0:11 'result' ( temp 4-component vector of float) | ||
0:11 'in_vs' ( in 4-component vector of float) | ||
0:13 move second child to first child ( temp 4-component vector of float) | ||
0:13 direct index (layout( xfb_buffer=0 xfb_offset=0) smooth temp 4-component vector of float) | ||
0:13 'xfb_buffer' (layout( xfb_buffer=0 xfb_offset=0) smooth out 1-element array of 4-component vector of float) | ||
0:13 Constant: | ||
0:13 0 (const int) | ||
0:13 divide ( temp 4-component vector of float) | ||
0:13 'result' ( temp 4-component vector of float) | ||
0:13 Constant: | ||
0:13 2.000000 | ||
0:15 move second child to first child ( temp 4-component vector of float) | ||
0:15 'out_vs' ( smooth out 4-component vector of float) | ||
0:15 'result' ( temp 4-component vector of float) | ||
0:? Linker Objects | ||
0:? 'xfb_buffer' (layout( xfb_buffer=0 xfb_offset=0) smooth out 1-element array of 4-component vector of float) | ||
0:? 'in_vs' ( in 4-component vector of float) | ||
0:? 'out_vs' ( smooth out 4-component vector of float) | ||
0:? 'gl_VertexID' ( gl_VertexId int VertexId) | ||
0:? 'gl_InstanceID' ( gl_InstanceId int InstanceId) | ||
|
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,14 @@ | ||
#version 140 | ||
|
||
layout (std140) uniform UBO // offset can't use under version 140 | ||
{ | ||
layout(offset = 0) vec4 a; | ||
}; | ||
|
||
in vec4 in_vs; | ||
out vec4 out_vs; | ||
|
||
void main() | ||
{ | ||
out_vs = in_vs + a; | ||
} |
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,14 @@ | ||
#version 430 core | ||
|
||
layout (std140) uniform UBO // offset can't use on 430 core with out extension require | ||
{ | ||
layout(offset = 0) vec4 a; | ||
}; | ||
|
||
in vec4 in_vs; | ||
out vec4 out_vs; | ||
|
||
void main() | ||
{ | ||
out_vs = in_vs + a; | ||
} |
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,14 @@ | ||
#version 300 es | ||
|
||
layout (binding = 0, offset = 0) uniform UBO // offset can't use on under version es 300 | ||
{ | ||
vec4 a; | ||
}; | ||
|
||
in vec4 in_vs; | ||
out vec4 out_vs; | ||
|
||
void main() | ||
{ | ||
out_vs = in_vs + a; | ||
} |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#version 140 | ||
#extension GL_ARB_enhanced_layouts : require | ||
|
||
in vec4 k; | ||
out vec4 o; | ||
|
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,16 @@ | ||
#version 430 core | ||
#extension GL_ARB_enhanced_layouts : require | ||
|
||
layout (xfb_offset = 0) out vec4 xfb_buffer[]; // ERROR: unsized array cannot be used for an xfb buffer? | ||
|
||
in vec4 in_vs; | ||
out vec4 out_vs; | ||
|
||
void main() | ||
{ | ||
vec4 result = in_vs; | ||
|
||
xfb_buffer[0] = result / 2; | ||
|
||
out_vs = result; | ||
} |
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