return false;
}
-VkResult CreateDeviceNoop(VkPhysicalDevice,
- const VkDeviceCreateInfo*,
- VkDevice*) {
+VkResult Noop(...) {
return VK_SUCCESS;
}
return reinterpret_cast<PFN_vkVoidFunction>(GetLayerDeviceProcAddr);
}
if (strcmp(name, "vkCreateDevice") == 0) {
- return reinterpret_cast<PFN_vkVoidFunction>(CreateDeviceNoop);
+ return reinterpret_cast<PFN_vkVoidFunction>(Noop);
}
if (!device)
return GetGlobalDeviceProcAddr(name);
instance->drv.vtbl.DestroyInstance) {
instance->drv.vtbl.DestroyInstance(instance->drv.vtbl.instance);
}
- for (auto it = instance->active_layers.begin();
- it != instance->active_layers.end(); ++it) {
- DeactivateLayer(instance, instance, it);
- }
if (instance->message) {
PFN_vkDbgDestroyMsgCallback DebugDestroyMessageCallback;
DebugDestroyMessageCallback =
vkGetInstanceProcAddr(instance, "vkDbgDestroyMsgCallback"));
DebugDestroyMessageCallback(instance, instance->message);
}
+ for (auto it = instance->active_layers.begin();
+ it != instance->active_layers.end(); ++it) {
+ DeactivateLayer(instance, instance, it);
+ }
const VkAllocCallbacks* alloc = instance->alloc;
instance->~VkInstance_T();
alloc->pfnFree(alloc->pUserData, instance);
// clang-format on
};
-VkResult Noop(...) {
- return VK_SUCCESS;
-}
-
PFN_vkVoidFunction GetInstanceProcAddrBottom(VkInstance, const char* name) {
// TODO: Possibly move this into the instance table
// TODO: Possibly register the callbacks in the loader