summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authoronelin <oscar@nelin.dk>2025-11-29 21:48:56 +0000
committeronelin <oscar@nelin.dk>2025-12-18 21:14:15 +0000
commita184c285d0854ba0a0d0bf9032c4b4e680b257d6 (patch)
tree7b1b6d966eb03ec5eae654a5db15136258f0440e /src/include
parent7649615f710754582dcd6f9d17be30ad4682ca40 (diff)
Add compile_shader for source strings
Diffstat (limited to 'src/include')
-rw-r--r--src/include/daw/rendering.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/daw/rendering.h b/src/include/daw/rendering.h
index 17d3728..590bcb6 100644
--- a/src/include/daw/rendering.h
+++ b/src/include/daw/rendering.h
@@ -315,7 +315,8 @@ i32 renderbatch_add(RenderBatch* renderbatch, RenderObject* obj, Transform* t);
void renderbatch_transform(RenderBatch* renderbatch, usize obj_idx, Transform* t);
int renderbatch_refresh(RenderBatch* renderbatch);
-Shader compile_shader(const char* file_path, const ShaderType shader_type);
+Shader compile_shader(const char* source, const ShaderType shader_type);
+Shader compile_shader_f(const char* file_path, const ShaderType shader_type);
Shader compose_shader(Shader *shaders, usize shaders_len);
void shaders_delete(Shader* shader, usize shader_len);