gtk/gsk/gpu/gskgpublitopprivate.h
Benjamin Otte 9ddae8aebc gpu: Add outline of new GPU renderer
For now, it just renders using cairo, uploads the result to the GPU,
blits it onto the framebuffer and then is happy.

But it can do that using Vulkan and using GL (no idea which version).

The most important thing still missing is shaders.

It also has a bunch of copy/paste from the Vulkan renderer that isn't
used yet.
But I didn't want to rip it out and then try to copy it back later
2024-01-07 07:22:49 +01:00

21 lines
845 B
C

#pragma once
#include "gskgpuopprivate.h"
G_BEGIN_DECLS
typedef enum {
GSK_GPU_BLIT_NEAREST,
GSK_GPU_BLIT_LINEAR
} GskGpuBlitFilter;
void gsk_gpu_blit_op (GskGpuFrame *frame,
GskGpuImage *src_image,
GskGpuImage *dest_image,
const cairo_rectangle_int_t *src_rect,
const cairo_rectangle_int_t *dest_rect,
GskGpuBlitFilter filter);
G_END_DECLS