Shader compilation, uniforms, vertex buffers and notes.

This commit is contained in:
2024-09-13 23:28:06 +02:00
parent d6745226a1
commit 660a6cedea
9 changed files with 370 additions and 28 deletions

View File

@@ -0,0 +1,15 @@
#version 460
layout(set = 3, binding = 0)
uniform Parameters
{
vec4 u_color;
};
layout(location = 0)
out vec4 o_color;
void main()
{
o_color = u_color;
}

View File

@@ -0,0 +1,8 @@
#version 460
layout(location = 0) in vec2 i_position;
void main()
{
gl_Position = vec4(i_position, 0.0, 1.0);
}