Vulkan/Device: Improve and rename GetDeviceQueue method
Former-commit-id: 7887f86989e9f19f315275bcb944147bca306afd
This commit is contained in:
parent
aa654b5caf
commit
42fba6eee4
|
|
@ -34,7 +34,7 @@ namespace Nz
|
|||
bool Create(VkPhysicalDevice device, const VkDeviceCreateInfo& createInfo, const VkAllocationCallbacks* allocator = nullptr);
|
||||
inline void Destroy();
|
||||
|
||||
inline void GetDeviceQueue(UInt32 queueFamilyIndex, UInt32 queueIndex, VkQueue* queue);
|
||||
inline VkQueue GetQueue(UInt32 queueFamilyIndex, UInt32 queueIndex);
|
||||
inline Instance& GetInstance();
|
||||
inline const Instance& GetInstance() const;
|
||||
inline VkResult GetLastErrorCode() const;
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue