From a41a32cb9079dc3c78414b7b0cdc68243333020d Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 29 Mar 2025 13:27:20 +0100 Subject: WIP: use compute shader instead of graphics shader for better performance (especially on amd) --- include/shader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/shader.h') diff --git a/include/shader.h b/include/shader.h index 57d1096..8bc1104 100644 --- a/include/shader.h +++ b/include/shader.h @@ -9,7 +9,7 @@ typedef struct { } gsr_shader; /* |vertex_shader| or |fragment_shader| may be NULL */ -int gsr_shader_init(gsr_shader *self, gsr_egl *egl, const char *vertex_shader, const char *fragment_shader); +int gsr_shader_init(gsr_shader *self, gsr_egl *egl, const char *vertex_shader, const char *fragment_shader, const char *compute_shader); void gsr_shader_deinit(gsr_shader *self); int gsr_shader_bind_attribute_location(gsr_shader *self, const char *attribute, int location); -- cgit v1.2.3-70-g09d2