loader: Add device callback to set dispatchable object
Change-Id: I5ca8f532e777e2cb0facf8fe5bab4c82409f8d37
This commit is contained in:
parent
f54813d16e
commit
4e7a9528f9
@ -268,7 +268,7 @@ typedef enum VkLayerDbgAction_ {
|
|||||||
*/
|
*/
|
||||||
typedef enum VkLayerFunction_ {
|
typedef enum VkLayerFunction_ {
|
||||||
VK_LAYER_LINK_INFO = 0,
|
VK_LAYER_LINK_INFO = 0,
|
||||||
VK_LOADER_DISPATCH_CALLBACK = 1
|
VK_LOADER_DATA_CALLBACK = 1
|
||||||
} VkLayerFunction;
|
} VkLayerFunction;
|
||||||
|
|
||||||
typedef struct VkLayerInstanceLink_ {
|
typedef struct VkLayerInstanceLink_ {
|
||||||
@ -290,6 +290,8 @@ typedef struct VkLayerDeviceInfo_ {
|
|||||||
|
|
||||||
typedef VkResult (VKAPI_PTR *PFN_vkSetInstanceLoaderData)(VkInstance instance,
|
typedef VkResult (VKAPI_PTR *PFN_vkSetInstanceLoaderData)(VkInstance instance,
|
||||||
void *object);
|
void *object);
|
||||||
|
typedef VkResult (VKAPI_PTR *PFN_vkSetDeviceLoaderData)(VkDevice device,
|
||||||
|
void *object);
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
VkStructureType sType; // VK_STRUCTURE_TYPE_LAYER_INSTANCE_CREATE_INFO
|
VkStructureType sType; // VK_STRUCTURE_TYPE_LAYER_INSTANCE_CREATE_INFO
|
||||||
@ -313,6 +315,7 @@ typedef struct {
|
|||||||
VkLayerFunction function;
|
VkLayerFunction function;
|
||||||
union {
|
union {
|
||||||
VkLayerDeviceLink *pLayerInfo;
|
VkLayerDeviceLink *pLayerInfo;
|
||||||
|
PFN_vkSetDeviceLoaderData pfnSetDeviceLoaderData;
|
||||||
} u;
|
} u;
|
||||||
} VkLayerDeviceCreateInfo;
|
} VkLayerDeviceCreateInfo;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user