Add 'engine/' from commit 'a8e37fc010'
git-subtree-dir: engine git-subtree-mainline:b74841629egit-subtree-split:a8e37fc010
This commit is contained in:
commit
c3f9669b10
14113 changed files with 7458101 additions and 0 deletions
1
engine/tests/python_build/fixtures/glsl/_included.glsl
Normal file
1
engine/tests/python_build/fixtures/glsl/_included.glsl
Normal file
|
|
@ -0,0 +1 @@
|
|||
#define M_PI 3.14159265359
|
||||
11
engine/tests/python_build/fixtures/glsl/compute.glsl
Normal file
11
engine/tests/python_build/fixtures/glsl/compute.glsl
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#[compute]
|
||||
|
||||
#version 450
|
||||
|
||||
#VERSION_DEFINES
|
||||
|
||||
#include "_included.glsl"
|
||||
|
||||
void main() {
|
||||
vec3 static_light = vec3(0, 1, 0);
|
||||
}
|
||||
14
engine/tests/python_build/fixtures/glsl/compute.out
Normal file
14
engine/tests/python_build/fixtures/glsl/compute.out
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
static const char compute_shader_glsl[] = {
|
||||
R"<!>(#[compute]
|
||||
|
||||
#version 450
|
||||
|
||||
#VERSION_DEFINES
|
||||
|
||||
#define M_PI 3.14159265359
|
||||
|
||||
void main() {
|
||||
vec3 static_light = vec3(0, 1, 0);
|
||||
}
|
||||
)<!>"
|
||||
};
|
||||
31
engine/tests/python_build/fixtures/glsl/vertex_fragment.glsl
Normal file
31
engine/tests/python_build/fixtures/glsl/vertex_fragment.glsl
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#[versions]
|
||||
|
||||
lines = "#define MODE_LINES";
|
||||
|
||||
#[vertex]
|
||||
|
||||
#version 450
|
||||
|
||||
#VERSION_DEFINES
|
||||
|
||||
layout(location = 0) out vec3 uv_interp;
|
||||
|
||||
void main() {
|
||||
#ifdef MODE_LINES
|
||||
uv_interp = vec3(0, 0, 1);
|
||||
#endif
|
||||
}
|
||||
|
||||
#[fragment]
|
||||
|
||||
#version 450
|
||||
|
||||
#VERSION_DEFINES
|
||||
|
||||
#include "_included.glsl"
|
||||
|
||||
layout(location = 0) out vec4 dst_color;
|
||||
|
||||
void main() {
|
||||
dst_color = vec4(1, 1, 0, 0);
|
||||
}
|
||||
34
engine/tests/python_build/fixtures/glsl/vertex_fragment.out
Normal file
34
engine/tests/python_build/fixtures/glsl/vertex_fragment.out
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
static const char vertex_fragment_shader_glsl[] = {
|
||||
R"<!>(#[versions]
|
||||
|
||||
lines = "#define MODE_LINES";
|
||||
|
||||
#[vertex]
|
||||
|
||||
#version 450
|
||||
|
||||
#VERSION_DEFINES
|
||||
|
||||
layout(location = 0) out vec3 uv_interp;
|
||||
|
||||
void main() {
|
||||
#ifdef MODE_LINES
|
||||
uv_interp = vec3(0, 0, 1);
|
||||
#endif
|
||||
}
|
||||
|
||||
#[fragment]
|
||||
|
||||
#version 450
|
||||
|
||||
#VERSION_DEFINES
|
||||
|
||||
#define M_PI 3.14159265359
|
||||
|
||||
layout(location = 0) out vec4 dst_color;
|
||||
|
||||
void main() {
|
||||
dst_color = vec4(1, 1, 0, 0);
|
||||
}
|
||||
)<!>"
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue