aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJon Ashburn <jon@lunarg.com>2014-12-22 12:04:40 -0700
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-02-04 17:58:02 -0700
commite33f722e876e701ad51adaf2713acf7775802c98 (patch)
tree1eb9837824926ad52b7f964ed5a10919c7221aa4 /include
parentacf299cb4386742ca71c12aed9e2cd040c79454e (diff)
downloadusermoji-e33f722e876e701ad51adaf2713acf7775802c98.tar.xz
layers: Add utilities for layer configuration via settings file.
Layers can now call getLayerOption("<option name>") to get layer settings. File xgl_layer_settings.txt can be used to provide option and value pairs to configure a given layer. Add enums to xglLayer.h to provide a generic ACTION and LEVEl settings for options in the settings file.
Diffstat (limited to 'include')
-rw-r--r--include/xglLayer.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/xglLayer.h b/include/xglLayer.h
index a6ca2708..6a0339c4 100644
--- a/include/xglLayer.h
+++ b/include/xglLayer.h
@@ -156,5 +156,22 @@ typedef struct _XGL_LAYER_DBG_FUNCTION_NODE
struct _XGL_LAYER_DBG_FUNCTION_NODE *pNext;
} XGL_LAYER_DBG_FUNCTION_NODE;
+typedef enum _XGL_LAYER_DBG_ACTION
+{
+ XGL_DBG_LAYER_ACTION_IGNORE = 0x0,
+ XGL_DBG_LAYER_ACTION_CALLBACK = 0x1,
+ XGL_DBG_LAYER_ACTION_LOG_MSG = 0x2,
+ XGL_DBG_LAYER_ACTION_BREAK = 0x4
+} XGL_LAYER_DBG_ACTION;
+
+typedef enum _XGL_LAYER_DBG_REPORT_LEVEL
+{
+
+ XGL_DBG_LAYER_LEVEL_INFO = 0,
+ XGL_DBG_LAYER_LEVEL_WARN,
+ XGL_DBG_LAYER_LEVEL_PERF_WARN,
+ XGL_DBG_LAYER_LEVEL_ERROR,
+ XGL_DBG_LAYER_LEVEL_NONE,
+} XGL_LAYER_DBG_REPORT_LEVEL;
// ------------------------------------------------------------------------------------------------
// API functions