gsk: Add rendering debug mode for shaders

It's going to be useful to inject debugging data into the shaders used
by GSK.
This commit is contained in:
Emmanuele Bassi 2016-07-03 18:59:32 +01:00
parent 0ce9815bd1
commit 3d21c4afba
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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);