aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLenny Komow <[email protected]>2018-02-13 15:58:47 -0700
committerMark Lobodzinski <[email protected]>2018-05-04 09:24:26 -0600
commitfba227b4a312e3e9108c44ed3ddeef7dd63dca37 (patch)
treedf1ea073a33357c42e37b9817a19b87393ecc1d4
parent877223eff1e44fefa17b992d55ce86badebfe169 (diff)
downloadVulkan-Headers-fba227b4a312e3e9108c44ed3ddeef7dd63dca37.tar.gz
Vulkan-Headers-fba227b4a312e3e9108c44ed3ddeef7dd63dca37.zip
loader: Extend pre-instance intercepts for 1.1
Add the ability to intercept vkEnumerateInstanceVersion through the pre-instance intercept mechanism
-rw-r--r--include/vulkan/vk_layer.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/vulkan/vk_layer.h b/include/vulkan/vk_layer.h
index 147dcd4..e8300c3 100644
--- a/include/vulkan/vk_layer.h
+++ b/include/vulkan/vk_layer.h
@@ -144,6 +144,7 @@ typedef enum VkChainType {
VK_CHAIN_TYPE_UNKNOWN = 0,
VK_CHAIN_TYPE_ENUMERATE_INSTANCE_EXTENSION_PROPERTIES = 1,
VK_CHAIN_TYPE_ENUMERATE_INSTANCE_LAYER_PROPERTIES = 2,
+ VK_CHAIN_TYPE_ENUMERATE_INSTANCE_VERSION = 3,
} VkChainType;
typedef struct VkChainHeader {
@@ -177,6 +178,18 @@ typedef struct VkEnumerateInstanceLayerPropertiesChain {
#endif
} VkEnumerateInstanceLayerPropertiesChain;
+typedef struct VkEnumerateInstanceVersionChain {
+ VkChainHeader header;
+ VkResult(VKAPI_PTR *pfnNextLayer)(const struct VkEnumerateInstanceVersionChain *, uint32_t *);
+ const struct VkEnumerateInstanceVersionChain *pNextLink;
+
+#if defined(__cplusplus)
+ inline VkResult CallDown(uint32_t *pApiVersion) const {
+ return pfnNextLayer(pNextLink, pApiVersion);
+ }
+#endif
+} VkEnumerateInstanceVersionChain;
+
#ifdef __cplusplus
}
#endif