moved rendering to a system.

To ensure that the rendering system is being run in the main thread, I
added the concept of "Sync systems", so that when a system group is
created it's possible to specify whether it's possible to run it on a
separate thread or not.
This commit is contained in:
Lorenzo Torres 2025-03-29 16:15:56 +01:00
parent fd7973173f
commit 16a2a40418
9 changed files with 85 additions and 64 deletions

View file

@ -2,12 +2,10 @@
layout(location = 0) in vec3 vertPos;
layout(binding = 0) uniform UniformObject {
layout (binding = 0) uniform Uniform {
mat4 proj;
mat4 view;
mat4 model;
} ubo;
void main() {
gl_Position = ubo.view * ubo.proj * vec4(vertPos, 1.0);
gl_Position = ubo.proj * vec4(vertPos, 1.0);
}