aboutsummaryrefslogtreecommitdiff
path: root/include/shader.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-04-06 21:52:15 +0200
committerdec05eba <dec05eba@protonmail.com>2025-04-06 21:52:15 +0200
commit5029906c344ea39c13c9875d89da0f6b4a8595aa (patch)
tree1f85799d2e51d676e8cf571f94f12a3a20e04446 /include/shader.h
parent9de04e74eaab2748318198d2b8fa273c3a79fe12 (diff)
Fallback to graphics shader instead of compute shader if the gpu doesn't support compute shader (either glsl 420 or opengl es glsl 310)
Diffstat (limited to 'include/shader.h')
-rw-r--r--include/shader.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/shader.h b/include/shader.h
index 8bc1104..285758d 100644
--- a/include/shader.h
+++ b/include/shader.h
@@ -1,6 +1,8 @@
#ifndef GSR_SHADER_H
#define GSR_SHADER_H
+#include <stdbool.h>
+
typedef struct gsr_egl gsr_egl;
typedef struct {
@@ -16,4 +18,6 @@ int gsr_shader_bind_attribute_location(gsr_shader *self, const char *attribute,
void gsr_shader_use(gsr_shader *self);
void gsr_shader_use_none(gsr_shader *self);
+void gsr_shader_enable_debug_output(bool enable);
+
#endif /* GSR_SHADER_H */