mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 04:31:09 +00:00
gl renderer: Shuffle things around a bit
This commit is contained in:
parent
cef7f7f87d
commit
c79c18f39c
@ -12,14 +12,6 @@ uniform mat4 u_projection;
|
|||||||
uniform mat4 u_modelview;
|
uniform mat4 u_modelview;
|
||||||
uniform float u_alpha;// = 1.0;
|
uniform float u_alpha;// = 1.0;
|
||||||
uniform vec4 u_viewport;
|
uniform vec4 u_viewport;
|
||||||
|
|
||||||
struct RoundedRect
|
|
||||||
{
|
|
||||||
vec4 bounds;
|
|
||||||
vec4 corner_widths;
|
|
||||||
vec4 corner_heights;
|
|
||||||
};
|
|
||||||
|
|
||||||
uniform vec4[3] u_clip_rect;
|
uniform vec4[3] u_clip_rect;
|
||||||
|
|
||||||
#if GSK_GLES
|
#if GSK_GLES
|
||||||
@ -36,6 +28,15 @@ _OUT_ vec4 outputColor;
|
|||||||
#endif
|
#endif
|
||||||
_IN_ vec2 vUv;
|
_IN_ vec2 vUv;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
struct RoundedRect
|
||||||
|
{
|
||||||
|
vec4 bounds;
|
||||||
|
vec4 corner_widths;
|
||||||
|
vec4 corner_heights;
|
||||||
|
};
|
||||||
|
|
||||||
// Transform from a GskRoundedRect to a RoundedRect as we need it.
|
// Transform from a GskRoundedRect to a RoundedRect as we need it.
|
||||||
RoundedRect
|
RoundedRect
|
||||||
create_rect(vec4 data[3])
|
create_rect(vec4 data[3])
|
||||||
|
Loading…
Reference in New Issue
Block a user