diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-03-29 13:27:20 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-03-29 13:29:10 +0100 |
commit | a41a32cb9079dc3c78414b7b0cdc68243333020d (patch) | |
tree | 5776bf16deb9f4e18cf744d474e0d1f0dc19c081 /include/shader.h | |
parent | 634a563bc0e7d23040e70f90e7ccc498aa7db41e (diff) |
WIP: use compute shader instead of graphics shader for better performance (especially on amd)
Diffstat (limited to 'include/shader.h')
-rw-r--r-- | include/shader.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |