direct copy vulkan-zig example

This commit is contained in:
David Allemang
2024-03-22 16:34:26 -04:00
parent bc9aa90068
commit 282c38ddfc
6 changed files with 1163 additions and 13 deletions

11
src/shaders/triangle.vert Normal file
View File

@@ -0,0 +1,11 @@
#version 450
layout(location = 0) in vec2 a_pos;
layout(location = 1) in vec3 a_color;
layout(location = 0) out vec3 v_color;
void main() {
gl_Position = vec4(a_pos, 0.0, 1.0);
v_color = a_color;
}