aboutsummaryrefslogtreecommitdiff
path: root/layers/draw_state.cpp
diff options
context:
space:
mode:
authorCourtney Goeltzenleuchter <courtney@LunarG.com>2015-06-01 14:34:25 -0600
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-06-18 10:18:19 -0600
commit197a9f5a51beb40045e5c44137a47f40d017e8c1 (patch)
treed75ade0dde1282b2ae8ef9b304886d0e7d2a1c69 /layers/draw_state.cpp
parentd0ce399274819acd61c6a5a364a16439242d6a0a (diff)
downloadusermoji-197a9f5a51beb40045e5c44137a47f40d017e8c1.tar.xz
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.
Diffstat (limited to 'layers/draw_state.cpp')
-rw-r--r--layers/draw_state.cpp9
1 files changed, 7 insertions, 2 deletions
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);
}
-
}