mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
bd901896ee
This shader can take over from the ubershader. And it can be used instead of launching the ubershader when no offscreens are necessary. Also includes an optimization that uses the colorize shader when appropriate.
24 lines
1.3 KiB
C
24 lines
1.3 KiB
C
#pragma once
|
|
|
|
#include "gskgpushaderopprivate.h"
|
|
|
|
#include <graphene.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
void gsk_gpu_mask_op (GskGpuFrame *frame,
|
|
GskGpuShaderClip clip,
|
|
GskGpuDescriptors *desc,
|
|
const graphene_rect_t *rect,
|
|
const graphene_point_t *offset,
|
|
float opacity,
|
|
GskMaskMode mask_mode,
|
|
guint32 source_descriptor,
|
|
const graphene_rect_t *source_rect,
|
|
guint32 mask_descriptor,
|
|
const graphene_rect_t *mask_rect);
|
|
|
|
|
|
G_END_DECLS
|
|
|