1
Fork 0

replace glsl samples with glsl-samples submodule

This commit is contained in:
automaticp 2023-10-15 18:34:10 +06:00
commit ef57afc986
5 changed files with 4 additions and 51 deletions

3
.gitmodules vendored
View file

@ -4,3 +4,6 @@
[submodule "spec/GLSL"]
path = spec/GLSL
url = https://github.com/KhronosGroup/GLSL
[submodule "tests/glsl-samples"]
path = tests/glsl-samples
url = https://github.com/nolanderc/glsl-samples

View file

@ -1,37 +0,0 @@
#version 330
#include "common.glsl"
#include "empty.glsl"
layout(location = 0) in vec3 position;
in Inputs {
vec2 tex_coords;
} inputs;
out Outputs {
vec4 frag_pos;
vec2 tex_coords;
} outputs;
void main() {
const vec4 color = vec4(0.3, 0.5 + 3, -3, 1);
Rectangle[4] rect = Rectangle(vec2(1, 2), vec2(3, 4));
Light light;
for (int i = 0; i < len; i++) {
print(i);
}
if (true) {
return 123;
} else {
return 8;
}
}
struct Light {
vec3 color; // color of the light
float size; // radius of the light
};

View file

@ -1,13 +0,0 @@
struct Rectangle {
vec2 min, max;
};
int add(int x, int y) {
return x + y;
}
float add(float x, float y) {
return x + y;
}
void print(int i);

View file

@ -1 +0,0 @@
#define ENABLE_BLOOM 1

1
tests/glsl-samples Submodule

@ -0,0 +1 @@
Subproject commit 95264d5602cc8542e9e8dbdaab6045f9619ab180