[gtk] gl renderer: Shuffle things around a bit
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] gl renderer: Shuffle things around a bit
- Date: Tue, 7 Jan 2020 16:37:53 +0000 (UTC)
commit c79c18f39ce30d17408728213a64fe7caa1a4b3c
Author: Timm Bäder <mail baedert org>
Date: Tue Dec 17 12:27:35 2019 +0100
gl renderer: Shuffle things around a bit
gsk/resources/glsl/preamble.fs.glsl | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/gsk/resources/glsl/preamble.fs.glsl b/gsk/resources/glsl/preamble.fs.glsl
index 569de0ab62..00a8c2135e 100644
--- a/gsk/resources/glsl/preamble.fs.glsl
+++ b/gsk/resources/glsl/preamble.fs.glsl
@@ -12,14 +12,6 @@ uniform mat4 u_projection;
uniform mat4 u_modelview;
uniform float u_alpha;// = 1.0;
uniform vec4 u_viewport;
-
-struct RoundedRect
-{
- vec4 bounds;
- vec4 corner_widths;
- vec4 corner_heights;
-};
-
uniform vec4[3] u_clip_rect;
#if GSK_GLES
@@ -36,6 +28,15 @@ _OUT_ vec4 outputColor;
#endif
_IN_ vec2 vUv;
+
+
+struct RoundedRect
+{
+ vec4 bounds;
+ vec4 corner_widths;
+ vec4 corner_heights;
+};
+
// Transform from a GskRoundedRect to a RoundedRect as we need it.
RoundedRect
create_rect(vec4 data[3])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]