mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 06:21:14 +00:00
b4a1ed2a70
Add a GSK_GPU_IMAGE_STRAIGHT_ALPHA and use it for images that have straight alpha. Make sure those images get passed through a premultiplying pass with the new straight alpha shader. Also remove the old Postprocess flags from the Vulkan image that were a leftover from copying that code from the old Vulkan renderer.
20 lines
894 B
C
20 lines
894 B
C
#pragma once
|
|
|
|
#include "gskgpushaderopprivate.h"
|
|
|
|
#include <graphene.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
void gsk_gpu_straight_alpha_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);
|
|
|
|
|
|
G_END_DECLS
|
|
|