[gtk+/wip/ebassi/gsk-renderer: 438/545] gsk: Add rendering debug mode for shaders



commit 7beea489cc110c61dd7a1c5aa220e3a0dd863df8
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sun Jul 3 18:59:32 2016 +0100

    gsk: Add rendering debug mode for shaders
    
    It's going to be useful to inject debugging data into the shaders used
    by GSK.

 gsk/gskdebug.c        |    1 +
 gsk/gskdebugprivate.h |    3 ++-
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gsk/gskdebug.c b/gsk/gskdebug.c
index ebc5366..4b315b0 100644
--- a/gsk/gskdebug.c
+++ b/gsk/gskdebug.c
@@ -11,6 +11,7 @@ static const GDebugKey gsk_debug_keys[] = {
 
 static const GDebugKey gsk_rendering_keys[] = {
   { "geometry", GSK_RENDERING_MODE_GEOMETRY },
+  { "shaders", GSK_RENDERING_MODE_SHADERS },
 };
 
 gboolean
diff --git a/gsk/gskdebugprivate.h b/gsk/gskdebugprivate.h
index 439be07..48b2f92 100644
--- a/gsk/gskdebugprivate.h
+++ b/gsk/gskdebugprivate.h
@@ -13,7 +13,8 @@ typedef enum {
 } GskDebugFlags;
 
 typedef enum {
-  GSK_RENDERING_MODE_GEOMETRY = 1 << 0
+  GSK_RENDERING_MODE_GEOMETRY = 1 << 0,
+  GSK_RENDERING_MODE_SHADERS  = 1 << 1
 } GskRenderingMode;
 
 gboolean gsk_check_debug_flags (GskDebugFlags flags);


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