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

This commit is contained in:
dec05eba
2025-03-29 13:27:20 +01:00
parent 634a563bc0
commit a41a32cb90
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);