Vulkan/Device: Improve and rename GetDeviceQueue method
Former-commit-id: 05c53b64d79411cc093d885457f0c7eb68364059
This commit is contained in:
parent
6ee0b4a51d
commit
230a42ca88
|
|
@ -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