diff options
| author | Courtney Goeltzenleuchter <courtneygo@google.com> | 2015-12-01 14:08:28 -0700 |
|---|---|---|
| committer | Jon Ashburn <jon@lunarg.com> | 2015-12-17 11:20:06 -0700 |
| commit | f5970c76038ae09ef457ecf8a239c50e86cd789e (patch) | |
| tree | 4cd3ec3eebfbe78deb48518900830f8cfc3bd2e0 /layers/param_checker.cpp | |
| parent | edcff401e235512af036e8949399df4ee1c4b48e (diff) | |
| download | usermoji-f5970c76038ae09ef457ecf8a239c50e86cd789e.tar.xz | |
layers: export debug_report extension
Need the EnumerateInstanceExtensionProperties to report
support for the debug report extension as well as in
the json file because different platforms will use either
the json file (Windows & Linux) or the Enumerate call (Android).
Diffstat (limited to 'layers/param_checker.cpp')
| -rw-r--r-- | layers/param_checker.cpp | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/layers/param_checker.cpp b/layers/param_checker.cpp index 0514bf18..6f023753 100644 --- a/layers/param_checker.cpp +++ b/layers/param_checker.cpp @@ -150,12 +150,10 @@ VK_LAYER_EXPORT VKAPI_ATTR void VKAPI_CALL vkDestroyDebugReportCallbackLUNARG( layer_destroy_msg_callback(data->report_data, msgCallback, pAllocator); } -static const VkLayerProperties pc_global_layers[] = { +static const VkExtensionProperties instance_extensions[] = { { - "ParamChecker", - VK_API_VERSION, - VK_MAKE_VERSION(0, 1, 0), - "Validation layer: ParamChecker", + VK_EXT_LUNARG_DEBUG_REPORT_EXTENSION_NAME, + VK_EXT_LUNARG_DEBUG_REPORT_EXTENSION_REVISION } }; @@ -164,10 +162,18 @@ VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateInstanceExtensionPrope uint32_t *pCount, VkExtensionProperties* pProperties) { - /* ParamChecker does not have any global extensions */ - return util_GetExtensionProperties(0, NULL, pCount, pProperties); + return util_GetExtensionProperties(1, instance_extensions, pCount, pProperties); } +static const VkLayerProperties pc_global_layers[] = { + { + "ParamChecker", + VK_API_VERSION, + VK_MAKE_VERSION(0, 1, 0), + "Validation layer: ParamChecker", + } +}; + VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateInstanceLayerProperties( uint32_t *pCount, VkLayerProperties* pProperties) |
