diff options
| author | Jon Ashburn <jon@lunarg.com> | 2016-03-31 10:52:22 -0600 |
|---|---|---|
| committer | Jon Ashburn <jon@lunarg.com> | 2016-04-01 10:48:22 -0600 |
| commit | fff87f6cca6918c85f14c97d5f912f4b28013ce2 (patch) | |
| tree | 8da6b70073cb5ac72e9cd6e35169b24ab3f5532b /include | |
| parent | 59af5e5546006754a92b32ce31b112f9ae47f14e (diff) | |
| download | usermoji-fff87f6cca6918c85f14c97d5f912f4b28013ce2.tar.xz | |
loader: Add device callback to set dispatchable object
Change-Id: I5ca8f532e777e2cb0facf8fe5bab4c82409f8d37
Diffstat (limited to 'include')
| -rw-r--r-- | include/vulkan/vk_layer.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/vulkan/vk_layer.h b/include/vulkan/vk_layer.h index e99e8134..f3edd98f 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; |
