Vulkan/Device: Improve and rename GetDeviceQueue method

Former-commit-id: 7887f86989e9f19f315275bcb944147bca306afd
This commit is contained in:
Lynix
2016-05-19 09:04:29 +02:00
parent aa654b5caf
commit 42fba6eee4
2 changed files with 6 additions and 3 deletions

View File

@@ -31,9 +31,12 @@ namespace Nz
}
}
inline void Device::GetDeviceQueue(UInt32 queueFamilyIndex, UInt32 queueIndex, VkQueue* queue)
inline VkQueue Device::GetQueue(UInt32 queueFamilyIndex, UInt32 queueIndex)
{
return vkGetDeviceQueue(m_device, queueFamilyIndex, queueIndex, queue);
VkQueue queue;
vkGetDeviceQueue(m_device, queueFamilyIndex, queueIndex, &queue);
return queue;
}
inline Instance& Device::GetInstance()