mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 22:10:08 +00:00
53821da4d6
Introduce a new GskGpuImageDescriptors object that tracks descriptors for a set of images that can be managed by the GPU. Then have each GskGpuShaderOp just reference the descriptors object they are using, so that the coe can set things up properly. To reference an image, the ops now just reference their descriptor - which is the uint32 we've been sending to the shaders since forever.
31 lines
2.2 KiB
C
31 lines
2.2 KiB
C
#pragma once
|
|
|
|
#include "gskgputypesprivate.h"
|
|
|
|
#include "gskroundedrect.h"
|
|
|
|
#include <cairo.h>
|
|
#include <graphene.h>
|
|
|
|
void gsk_gpu_print_indent (GString *string,
|
|
guint indent);
|
|
void gsk_gpu_print_op (GString *string,
|
|
guint indent,
|
|
const char *op_name);
|
|
|
|
void gsk_gpu_print_newline (GString *string);
|
|
|
|
void gsk_gpu_print_rect (GString *string,
|
|
const float rect[4]);
|
|
void gsk_gpu_print_int_rect (GString *string,
|
|
const cairo_rectangle_int_t *rect);
|
|
void gsk_gpu_print_rounded_rect (GString *string,
|
|
const float rect[12]);
|
|
void gsk_gpu_print_rgba (GString *string,
|
|
const float rgba[4]);
|
|
void gsk_gpu_print_image (GString *string,
|
|
GskGpuImage *image);
|
|
void gsk_gpu_print_image_descriptor (GString *string,
|
|
GskGpuDescriptors *desc,
|
|
guint32 descriptor);
|