forked from AuroraMiddleware/gtk
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:
parent
0ce9815bd1
commit
3d21c4afba
@ -11,6 +11,7 @@ static const GDebugKey gsk_debug_keys[] = {
|
|||||||
|
|
||||||
static const GDebugKey gsk_rendering_keys[] = {
|
static const GDebugKey gsk_rendering_keys[] = {
|
||||||
{ "geometry", GSK_RENDERING_MODE_GEOMETRY },
|
{ "geometry", GSK_RENDERING_MODE_GEOMETRY },
|
||||||
|
{ "shaders", GSK_RENDERING_MODE_SHADERS },
|
||||||
};
|
};
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
|
@ -13,7 +13,8 @@ typedef enum {
|
|||||||
} GskDebugFlags;
|
} GskDebugFlags;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
GSK_RENDERING_MODE_GEOMETRY = 1 << 0
|
GSK_RENDERING_MODE_GEOMETRY = 1 << 0,
|
||||||
|
GSK_RENDERING_MODE_SHADERS = 1 << 1
|
||||||
} GskRenderingMode;
|
} GskRenderingMode;
|
||||||
|
|
||||||
gboolean gsk_check_debug_flags (GskDebugFlags flags);
|
gboolean gsk_check_debug_flags (GskDebugFlags flags);
|
||||||
|
Loading…
Reference in New Issue
Block a user