2026-02-02 17:48:25 -06:00
|
|
|
#include "pxl8_shader_registry.h"
|
|
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
|
2026-02-05 03:27:35 -06:00
|
|
|
extern void pxl8_shader_lit(const pxl8_shader_ctx* ctx, const pxl8_shader_bindings* bindings, const pxl8_shader_uniforms* uniforms, u8* colors_out);
|
|
|
|
|
extern void pxl8_shader_unlit(const pxl8_shader_ctx* ctx, const pxl8_shader_bindings* bindings, const pxl8_shader_uniforms* uniforms, u8* colors_out);
|
2026-02-02 17:48:25 -06:00
|
|
|
|
|
|
|
|
void pxl8_shader_registry_init(void) {}
|
|
|
|
|
void pxl8_shader_registry_reload(void) {}
|
|
|
|
|
|
|
|
|
|
pxl8_shader_fn pxl8_shader_registry_get(const char* name) {
|
2026-02-05 03:27:35 -06:00
|
|
|
if (strcmp(name, "lit") == 0) return pxl8_shader_lit;
|
|
|
|
|
if (strcmp(name, "unlit") == 0) return pxl8_shader_unlit;
|
2026-02-02 17:48:25 -06:00
|
|
|
return NULL;
|
|
|
|
|
}
|