From 197a9f5a51beb40045e5c44137a47f40d017e8c1 Mon Sep 17 00:00:00 2001 From: Courtney Goeltzenleuchter Date: Mon, 1 Jun 2015 14:34:25 -0600 Subject: draw_state: Add validation extension record To make things easier for applications the validation layers will advertise support for two extensions. The named extension (i.e. DRAW_STATE) is used if the app only wants to enable this specific layer / extension. If an app wants to enable all Validation layers they simply include all VkExtensionProperties who's name is "Validation". This patch adds this extension to this layer. --- layers/draw_state.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'layers/draw_state.cpp') diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp index 4955cf19..4b76f05e 100644 --- a/layers/draw_state.cpp +++ b/layers/draw_state.cpp @@ -1599,13 +1599,19 @@ struct extProps { uint32_t version; const char * const name; }; -#define DRAW_STATE_LAYER_EXT_ARRAY_SIZE 1 +#define DRAW_STATE_LAYER_EXT_ARRAY_SIZE 2 static const VkExtensionProperties dsExts[DRAW_STATE_LAYER_EXT_ARRAY_SIZE] = { { VK_STRUCTURE_TYPE_EXTENSION_PROPERTIES, "DrawState", 0x10, "Sample layer: DrawState", + }, + { + VK_STRUCTURE_TYPE_EXTENSION_PROPERTIES, + "Validation", + 0x10, + "Sample layer: DrawState", } }; @@ -3088,5 +3094,4 @@ VK_LAYER_EXPORT void * VKAPI vkGetInstanceProcAddr(VkInstance instance, const ch return NULL; return pTable->GetInstanceProcAddr(instance, funcName); } - } -- cgit v1.2.3