aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJon Ashburn <[email protected]>2016-03-31 10:52:22 -0600
committerMark Lobodzinski <[email protected]>2018-05-04 09:24:24 -0600
commit4e7a9528f9f6b9176c5cb48e5d1e5eb017a94e57 (patch)
tree882e531f53d5b4bf80d00027898fe711010eb1c9
parentf54813d16e39a4d9766bc29a7ababf18b35098e3 (diff)
downloadVulkan-Headers-4e7a9528f9f6b9176c5cb48e5d1e5eb017a94e57.tar.gz
Vulkan-Headers-4e7a9528f9f6b9176c5cb48e5d1e5eb017a94e57.zip
loader: Add device callback to set dispatchable object
Change-Id: I5ca8f532e777e2cb0facf8fe5bab4c82409f8d37
-rw-r--r--include/vulkan/vk_layer.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/vulkan/vk_layer.h b/include/vulkan/vk_layer.h
index e99e813..f3edd98 100644
--- a/include/vulkan/vk_layer.h
+++ b/include/vulkan/vk_layer.h
@@ -268,7 +268,7 @@ typedef enum VkLayerDbgAction_ {
*/
typedef enum VkLayerFunction_ {
VK_LAYER_LINK_INFO = 0,
- VK_LOADER_DISPATCH_CALLBACK = 1
+ VK_LOADER_DATA_CALLBACK = 1
} VkLayerFunction;
typedef struct VkLayerInstanceLink_ {
@@ -290,6 +290,8 @@ typedef struct VkLayerDeviceInfo_ {
typedef VkResult (VKAPI_PTR *PFN_vkSetInstanceLoaderData)(VkInstance instance,
void *object);
+typedef VkResult (VKAPI_PTR *PFN_vkSetDeviceLoaderData)(VkDevice device,
+ void *object);
typedef struct {
VkStructureType sType; // VK_STRUCTURE_TYPE_LAYER_INSTANCE_CREATE_INFO
@@ -313,6 +315,7 @@ typedef struct {
VkLayerFunction function;
union {
VkLayerDeviceLink *pLayerInfo;
+ PFN_vkSetDeviceLoaderData pfnSetDeviceLoaderData;
} u;
} VkLayerDeviceCreateInfo;