mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
42d89a0ff1
This allows avoiding the uber shader in 2 important cases: 1. opacity - and Adwaita uses that a lot 2. color-matrix - it's used for symbolic icons
30 lines
2.0 KiB
C
30 lines
2.0 KiB
C
#pragma once
|
|
|
|
#include "gskgpushaderopprivate.h"
|
|
|
|
#include <graphene.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
void gsk_gpu_color_matrix_op (GskGpuFrame *frame,
|
|
GskGpuShaderClip clip,
|
|
GskGpuDescriptors *desc,
|
|
guint32 descriptor,
|
|
const graphene_rect_t *rect,
|
|
const graphene_point_t *offset,
|
|
const graphene_rect_t *tex_rect,
|
|
const graphene_matrix_t *color_matrix,
|
|
const graphene_vec4_t *color_offset);
|
|
|
|
void gsk_gpu_color_matrix_op_opacity (GskGpuFrame *frame,
|
|
GskGpuShaderClip clip,
|
|
GskGpuDescriptors *desc,
|
|
guint32 descriptor,
|
|
const graphene_rect_t *rect,
|
|
const graphene_point_t *offset,
|
|
const graphene_rect_t *tex_rect,
|
|
float opacity);
|
|
|
|
G_END_DECLS
|
|
|