mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 10:20:07 +00:00
9ddae8aebc
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
21 lines
845 B
C
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
|
|
|