big heckin reworkerino to use the standard #line directive as per spec

This commit is contained in:
Noah Santschi-Cooney 2022-04-03 21:31:18 +01:00
parent cb7c9b8b49
commit d3365c3bff
No known key found for this signature in database
GPG key ID: 3B22282472C8AE48
52 changed files with 574 additions and 398 deletions

View file

@ -1,7 +0,0 @@
#version 120
#include "/utils/sample.glsl"
void main() {
gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);
}

View file

@ -1,25 +0,0 @@
#version 120
#extension GL_GOOGLE_cpp_style_line_directive : enable
#line 2 "!!"
#line 1 "!!"
int sample() {
return 5;
}
#line 1 "!!"
void burger() {
// sample text
}
#line 6 "!!"
#line 1 "!!"
float test() {
return 3.0;
}
#line 8 "!!"
#line 4 "!!"
void main() {
gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);
}

View file

@ -1,3 +0,0 @@
void burger() {
// sample text
}

View file

@ -1,7 +0,0 @@
int sample() {
return 5;
}
#include "/utils/burger.glsl"
#include "/utils/test.glsl"

View file

@ -1,3 +0,0 @@
float test() {
return 3.0;
}