Added rect draw api

Added some new maths types
Updated shaders to use new D_Rect structure
Added rect buffers to frames
Misc cleanup
This commit is contained in:
2025-10-05 14:27:05 +01:00
parent 3b8c50a361
commit 1757fc4b96
14 changed files with 432 additions and 121 deletions

View File

@@ -4,12 +4,12 @@
layout(location = 0) in vec2 frag_uv;
layout(location = 1) in vec4 frag_c;
layout(location = 2) in flat uint idx;
layout(location = 2) in flat uint texid;
layout(location = 0) out vec4 framebuffer;
layout(binding = 1) uniform sampler2D u_image[];
layout(binding = 1) uniform sampler2D u_images[];
void main() {
framebuffer = frag_c * texture(u_image[idx], frag_uv);
framebuffer = frag_c * texture(u_images[texid], frag_uv);
}