Vulkan: Wrap vulkan queues

Former-commit-id: a52ec6d36cf91473c1b8b2be12c71f3f98043feb
This commit is contained in:
Lynix
2016-05-19 18:33:47 +02:00
parent 5b7476eab7
commit c374229931
4 changed files with 159 additions and 3 deletions

View File

@@ -5,6 +5,7 @@
#include <Nazara/Vulkan/VkDevice.hpp>
#include <Nazara/Core/Error.hpp>
#include <Nazara/Vulkan/VkInstance.hpp>
#include <Nazara/Vulkan/VkQueue.hpp>
#include <Nazara/Vulkan/Debug.hpp>
namespace Nz
@@ -31,12 +32,12 @@ namespace Nz
}
}
inline VkQueue Device::GetQueue(UInt32 queueFamilyIndex, UInt32 queueIndex)
inline Queue Device::GetQueue(UInt32 queueFamilyIndex, UInt32 queueIndex)
{
VkQueue queue;
vkGetDeviceQueue(m_device, queueFamilyIndex, queueIndex, &queue);
return queue;
return Queue(*this, queue);
}
inline Instance& Device::GetInstance()