30 lines
1.1 KiB
C++
30 lines
1.1 KiB
C++
// Copyright (C) 2021 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
|
|
// This file is part of the "Nazara Engine - Vulkan renderer"
|
|
// For conditions of distribution and use, see copyright notice in Config.hpp
|
|
|
|
#include <Nazara/VulkanRenderer/Wrapper/DebugUtilsMessengerEXT.hpp>
|
|
#include <Nazara/VulkanRenderer/Debug.hpp>
|
|
|
|
namespace Nz
|
|
{
|
|
namespace Vk
|
|
{
|
|
inline bool DebugUtilsMessengerEXT::IsSupported(Instance& instance)
|
|
{
|
|
return instance.vkCreateDebugUtilsMessengerEXT != nullptr;
|
|
}
|
|
|
|
inline VkResult DebugUtilsMessengerEXT::CreateHelper(Instance& instance, const VkDebugUtilsMessengerCreateInfoEXT* createInfo, const VkAllocationCallbacks* allocator, VkDebugUtilsMessengerEXT* handle)
|
|
{
|
|
return instance.vkCreateDebugUtilsMessengerEXT(instance, createInfo, allocator, handle);
|
|
}
|
|
|
|
inline void DebugUtilsMessengerEXT::DestroyHelper(Instance& instance, VkDebugUtilsMessengerEXT handle, const VkAllocationCallbacks* allocator)
|
|
{
|
|
return instance.vkDestroyDebugUtilsMessengerEXT(instance, handle, allocator);
|
|
}
|
|
}
|
|
}
|
|
|
|
#include <Nazara/VulkanRenderer/DebugOff.hpp>
|