basic rendering for both opengl and vulkan

This commit is contained in:
Lorenzo Torres 2026-01-07 02:43:00 +01:00
parent 4b18afa040
commit dadd2edaf1
29 changed files with 1140 additions and 38 deletions

10
assets/shaders/quad.frag Normal file
View file

@ -0,0 +1,10 @@
#version 450
layout(location = 0) in vec3 frag_color;
layout(location = 0) out vec4 out_color;
void main()
{
out_color = vec4(frag_color, 1.0);
}

12
assets/shaders/quad.vert Normal file
View file

@ -0,0 +1,12 @@
#version 450
layout(location = 0) in vec2 in_position;
layout(location = 1) in vec3 in_color;
layout(location = 0) out vec3 frag_color;
void main()
{
gl_Position = vec4(in_position, 0.0, 1.0);
frag_color = in_color;
}