Restructured passes

This commit is contained in:
2026-01-31 02:31:19 +01:00
parent bd4b81d434
commit b6a32ebe7f
6 changed files with 356 additions and 248 deletions

View File

@@ -3,6 +3,7 @@ package renderer
import os "core:os/os2"
Shader :: struct {
path: string,
type: Shader_Type,
backend: Shader_Backend,
}
@@ -27,6 +28,7 @@ create_shader :: proc(renderer: ^Renderer, type: Shader_Type, path: string) -> (
s: Shader
s.type = type
s.path = path
when RENDER_BACKEND_OPENGL {
shader_opengl, ok := opengl_create_shader(renderer, type, bytes)