Dolphin shader handler

This commit is contained in:
2026-04-10 18:34:58 -05:00
parent 673d8e0a18
commit d16ea13c14
5 changed files with 50 additions and 20 deletions
+12 -4
View File
@@ -8,7 +8,19 @@
#pragma once
#include "display/texture/texture.h"
typedef union shadermaterial_u shadermaterial_t;
typedef struct shaderdolphin_s shaderdolphin_t;
typedef struct {
errorret_t (*setMaterial)(
shaderdolphin_t *shader,
const shadermaterial_t *material
);
} shaderdefinitiondolphin_t;
typedef struct shaderdolphin_s {
shaderdefinitiondolphin_t *definition;
mat4 view;
mat4 proj;
mat4 model;
@@ -22,10 +34,6 @@ typedef struct {
uint_fast8_t dirtyMatrix;
} shaderdolphin_t;
typedef struct {
void *empty;
} shaderdefinitiondolphin_t;
#define SHADER_DOLPHIN_DIRTY_MODEL (1 << 0)
#define SHADER_DOLPHIN_DIRTY_PROJ (1 << 1)
#define SHADER_DOLPHIN_DIRTY_VIEW (1 << 2)