diff options
| author | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-06-01 14:34:25 -0600 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-06-18 10:18:19 -0600 |
| commit | 197a9f5a51beb40045e5c44137a47f40d017e8c1 (patch) | |
| tree | d75ade0dde1282b2ae8ef9b304886d0e7d2a1c69 /layers/draw_state.cpp | |
| parent | d0ce399274819acd61c6a5a364a16439242d6a0a (diff) | |
| download | usermoji-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.cpp | 9 |
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); } - } |
