mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
Set hooked_vkCreate/DestroyInstance to be VKAPI_CALL. Refs #230
This commit is contained in:
@@ -105,13 +105,13 @@ DefineHooks();
|
||||
// need to implement vkCreateInstance and vkDestroyInstance specially,
|
||||
// to create and destroy the core WrappedVulkan object
|
||||
|
||||
VkResult hooked_vkCreateInstance(const VkInstanceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkInstance* pInstance)
|
||||
VkResult VKAPI_CALL hooked_vkCreateInstance(const VkInstanceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkInstance* pInstance)
|
||||
{
|
||||
WrappedVulkan *core = new WrappedVulkan("");
|
||||
return core->vkCreateInstance(pCreateInfo, pAllocator, pInstance);
|
||||
}
|
||||
|
||||
void hooked_vkDestroyInstance(VkInstance instance, const VkAllocationCallbacks* pAllocator)
|
||||
void VKAPI_CALL hooked_vkDestroyInstance(VkInstance instance, const VkAllocationCallbacks* pAllocator)
|
||||
{
|
||||
WrappedVulkan *core = CoreDisp(instance);
|
||||
core->vkDestroyInstance(instance, pAllocator);
|
||||
|
||||
Reference in New Issue
Block a user