Minor fixes + update vulkan include
This commit is contained in:
@@ -90,7 +90,7 @@ namespace Nz
|
||||
case VK_ERROR_OUT_OF_POOL_MEMORY_KHR:
|
||||
return "A requested pool allocation has failed";
|
||||
|
||||
case VK_ERROR_INVALID_EXTERNAL_HANDLE_KHX:
|
||||
case VK_ERROR_INVALID_EXTERNAL_HANDLE:
|
||||
return "An external handle is not a valid handle of the specified type";
|
||||
|
||||
default:
|
||||
|
||||
@@ -11,4 +11,10 @@ namespace Nz
|
||||
{
|
||||
OnRenderTargetRelease(this);
|
||||
}
|
||||
|
||||
void VkRenderTarget::Destroy()
|
||||
{
|
||||
m_renderPass.Destroy();
|
||||
m_imageReadySemaphore.Destroy();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,8 +27,9 @@ namespace Nz
|
||||
|
||||
m_frameBuffers.clear();
|
||||
m_renderPass.Destroy();
|
||||
|
||||
m_swapchain.Destroy();
|
||||
|
||||
VkRenderTarget::Destroy();
|
||||
}
|
||||
|
||||
bool VkRenderWindow::Acquire(UInt32* imageIndex) const
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
#include <Nazara/VulkanRenderer/Wrapper/Device.hpp>
|
||||
#include <Nazara/Core/Error.hpp>
|
||||
#include <Nazara/Core/ErrorFlags.hpp>
|
||||
#include <Nazara/VulkanRenderer/Wrapper/Queue.hpp>
|
||||
#include <Nazara/VulkanRenderer/Debug.hpp>
|
||||
|
||||
namespace Nz
|
||||
@@ -218,5 +219,14 @@ namespace Nz
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Queue Device::GetQueue(UInt32 queueFamilyIndex, UInt32 queueIndex)
|
||||
{
|
||||
VkQueue queue;
|
||||
vkGetDeviceQueue(m_device, queueFamilyIndex, queueIndex, &queue);
|
||||
|
||||
return Queue(CreateHandle(), queue);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user