aboutsummaryrefslogtreecommitdiff
path: root/layers/image.cpp
diff options
context:
space:
mode:
authorCourtney Goeltzenleuchter <courtneygo@google.com>2015-12-01 14:08:28 -0700
committerJon Ashburn <jon@lunarg.com>2015-12-17 11:20:06 -0700
commitf5970c76038ae09ef457ecf8a239c50e86cd789e (patch)
tree4cd3ec3eebfbe78deb48518900830f8cfc3bd2e0 /layers/image.cpp
parentedcff401e235512af036e8949399df4ee1c4b48e (diff)
downloadusermoji-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/image.cpp')
-rw-r--r--layers/image.cpp20
1 files changed, 13 insertions, 7 deletions
diff --git a/layers/image.cpp b/layers/image.cpp
index cde964af..614f9d54 100644
--- a/layers/image.cpp
+++ b/layers/image.cpp
@@ -190,12 +190,10 @@ VK_LAYER_EXPORT VKAPI_ATTR void VKAPI_CALL vkDestroyDevice(VkDevice device, cons
layer_data_map.erase(key);
}
-static const VkLayerProperties pc_global_layers[] = {
+static const VkExtensionProperties instance_extensions[] = {
{
- "Image",
- VK_API_VERSION,
- VK_MAKE_VERSION(0, 1, 0),
- "Validation layer: Image ParamChecker",
+ VK_EXT_LUNARG_DEBUG_REPORT_EXTENSION_NAME,
+ VK_EXT_LUNARG_DEBUG_REPORT_EXTENSION_REVISION
}
};
@@ -204,10 +202,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[] = {
+ {
+ "Image",
+ VK_API_VERSION,
+ VK_MAKE_VERSION(0, 1, 0),
+ "Validation layer: Image ParamChecker",
+ }
+};
+
VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateInstanceLayerProperties(
uint32_t *pCount,
VkLayerProperties* pProperties)