mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
ebb7fdb099
The alternative color state is used as the interpolation color state. Colors are transformed into that space on the CPU. For now we set the interpolation color state to SRGB, because ultimately we want to let callers specify it, so having something that's easy to map to that behavior is desirable. Otherwise we might have chosen to interpolate in the compositing colorstate. It also means that we need to premultiply colors on the CPU now because of the limitations of the shader colorstates APIs.
25 lines
1.2 KiB
C
25 lines
1.2 KiB
C
#pragma once
|
|
|
|
#include "gskgpushaderopprivate.h"
|
|
|
|
#include "gskrendernode.h"
|
|
|
|
#include <graphene.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
void gsk_gpu_linear_gradient_op (GskGpuFrame *frame,
|
|
GskGpuShaderClip clip,
|
|
GskGpuColorStates color_states,
|
|
gboolean repeating,
|
|
const graphene_rect_t *rect,
|
|
const graphene_point_t *start,
|
|
const graphene_point_t *end,
|
|
const graphene_point_t *offset,
|
|
const GskColorStop *stops,
|
|
gsize n_stops);
|
|
|
|
|
|
G_END_DECLS
|
|
|