Reapply "WIP: use compute shader instead of graphics shader for better performance (especially on amd)"

This reverts commit f85a7ab205.
This commit is contained in:
dec05eba
2025-03-29 15:38:05 +01:00
parent f85a7ab205
commit b8a521a785
18 changed files with 331 additions and 746 deletions

View File

@@ -25,7 +25,7 @@ typedef struct {
} gsr_image_writer;
bool gsr_image_writer_init_opengl(gsr_image_writer *self, gsr_egl *egl, int width, int height);
/* |memory| is taken as a reference */
/* |memory| is taken as a reference. The data is expected to be in rgba8 format (8 bit rgba) */
bool gsr_image_writer_init_memory(gsr_image_writer *self, const void *memory, int width, int height);
void gsr_image_writer_deinit(gsr_image_writer *self);