[gtk/wip/chergert/glproto: 112/493] add 4fv wrapper




commit b0097be1166b4ff6c20594d2c6fea8c4a897ede8
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jan 1 23:39:11 2021 -0800

    add 4fv wrapper

 gsk/next/gskglprogramprivate.h | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/gsk/next/gskglprogramprivate.h b/gsk/next/gskglprogramprivate.h
index c4e3a9cff8..0539d39726 100644
--- a/gsk/next/gskglprogramprivate.h
+++ b/gsk/next/gskglprogramprivate.h
@@ -79,6 +79,17 @@ gsk_gl_program_set_uniform1fv (GskGLProgram *self,
                                        count, values);
 }
 
+static inline void
+gsk_gl_program_set_uniform4fv (GskGLProgram *self,
+                               guint         key,
+                               guint         count,
+                               const float  *values)
+{
+  gsk_gl_command_queue_set_uniform4fv (self->command_queue, self->id,
+                                       gsk_gl_program_get_uniform_location (self, key),
+                                       count, values);
+}
+
 static inline void
 gsk_gl_program_set_uniform_rounded_rect (GskGLProgram         *self,
                                          guint                 key,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]