GLSL: Initiate version GLSL 460, including accept extraneous semicolons.

This commit is contained in:
John Kessenich
2017-07-23 14:44:59 -06:00
parent fda6edcbad
commit de16e52b25
10 changed files with 1627 additions and 1517 deletions

View File

@@ -26,3 +26,4 @@ void foo()
{
SS::f;
}
; // ERROR: no extraneous semicolons

13
Test/460.frag Normal file
View File

@@ -0,0 +1,13 @@
#version 460 core
struct S {
float f;
vec4 v;
};
in S s;
void main()
{
interpolateAtCentroid(s.v);
}

11
Test/460.vert Normal file
View File

@@ -0,0 +1,11 @@
#version 460 core
int i;
; // extraneous semicolon okay
float f;;;
void main()
{
}
;
;

View File

@@ -2,7 +2,8 @@
ERROR: 0:12: 'out' : cannot be bool
ERROR: 0:13: 'sampler2D' : sampler/image types can only be used in uniform variables or function parameters: outo
ERROR: 0:27: '::' : not supported
ERROR: 3 compilation errors. No code generated.
ERROR: 0:29: 'extraneous semicolon' : not supported for this version or the enabled extensions
ERROR: 4 compilation errors. No code generated.
Shader version: 450

31
Test/baseResults/460.frag.out Executable file
View File

@@ -0,0 +1,31 @@
460.frag
Shader version: 460
0:? Sequence
0:10 Function Definition: main( ( global void)
0:10 Function Parameters:
0:12 Sequence
0:12 interpolateAtCentroid ( global 4-component vector of float)
0:12 v: direct index for structure ( global 4-component vector of float)
0:12 's' ( smooth in structure{ global float f, global 4-component vector of float v})
0:12 Constant:
0:12 1 (const int)
0:? Linker Objects
0:? 's' ( smooth in structure{ global float f, global 4-component vector of float v})
Linked fragment stage:
Shader version: 460
0:? Sequence
0:10 Function Definition: main( ( global void)
0:10 Function Parameters:
0:12 Sequence
0:12 interpolateAtCentroid ( global 4-component vector of float)
0:12 v: direct index for structure ( global 4-component vector of float)
0:12 's' ( smooth in structure{ global float f, global 4-component vector of float v})
0:12 Constant:
0:12 1 (const int)
0:? Linker Objects
0:? 's' ( smooth in structure{ global float f, global 4-component vector of float v})

25
Test/baseResults/460.vert.out Executable file
View File

@@ -0,0 +1,25 @@
460.vert
Shader version: 460
0:? Sequence
0:7 Function Definition: main( ( global void)
0:7 Function Parameters:
0:? Linker Objects
0:? 'i' ( global int)
0:? 'f' ( global float)
0:? 'gl_VertexID' ( gl_VertexId int VertexId)
0:? 'gl_InstanceID' ( gl_InstanceId int InstanceId)
Linked vertex stage:
Shader version: 460
0:? Sequence
0:7 Function Definition: main( ( global void)
0:7 Function Parameters:
0:? Linker Objects
0:? 'i' ( global int)
0:? 'f' ( global float)
0:? 'gl_VertexID' ( gl_VertexId int VertexId)
0:? 'gl_InstanceID' ( gl_InstanceId int InstanceId)