gl renderer: Shuffle things around a bit
authorTimm Bäder <mail@baedert.org>
Tue, 17 Dec 2019 11:27:35 +0000 (12:27 +0100)
committerTimm Bäder <mail@baedert.org>
Tue, 7 Jan 2020 16:27:16 +0000 (17:27 +0100)
gsk/resources/glsl/preamble.fs.glsl

index 569de0ab62d5c724d06da5500563e59f65e6b85f..00a8c2135e539177b501ae31afb14a3a65833e70 100644 (file)
@@ -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])