mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
9947760d87
There are various places where the alpha is implicitly assumed to be handled, so just handle it. As a bonus, this simplifies a bunch of code and makes the texture node rendering work with alpha.
21 lines
1008 B
C
21 lines
1008 B
C
#pragma once
|
|
|
|
#include "gskgpushaderopprivate.h"
|
|
|
|
#include <graphene.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
void gsk_gpu_straight_alpha_op (GskGpuFrame *frame,
|
|
GskGpuShaderClip clip,
|
|
float opacity,
|
|
GskGpuDescriptors *desc,
|
|
guint32 descriptor,
|
|
const graphene_rect_t *rect,
|
|
const graphene_point_t *offset,
|
|
const graphene_rect_t *tex_rect);
|
|
|
|
|
|
G_END_DECLS
|
|
|