Vulkan: Wrap vulkan queues

Former-commit-id: 50a37b90b8f95d3842442e41357c117099d2afda
This commit is contained in:
Lynix
2016-05-19 18:33:47 +02:00
parent 602c39e8ba
commit ecd4a7e4bb
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()