Refactor Vulkan setup phase 3

This commit is contained in:
2026-05-15 12:39:32 -08:00
parent 6e18542b2b
commit ed1b9db61e
12 changed files with 860 additions and 651 deletions
+6 -2
View File
@@ -1,7 +1,11 @@
#version 450
layout(location = 0) in vec2 in_position;
vec2 positions[3] = vec2[](
vec2(0.0, -0.5),
vec2(0.5, 0.5),
vec2(-0.5, 0.5)
);
void main() {
gl_Position = vec4(in_position, 0.0, 1.0);
gl_Position = vec4(positions[gl_VertexIndex], 0.0, 1.0);
}