Vulkan/Swapchain: Fix warnings
Former-commit-id: 0f3511c6b678ad52c36880ae00c7dc39c78a259c [formerly 1ae9834f0f30ef38f7c8fbcb6b3d8b0f29a78ae8] Former-commit-id: 1cccb7159f6a4da20a48b9f7c7b01a709549a2dc
This commit is contained in:
parent
6344268b4b
commit
a6f223a396
|
|
@ -61,13 +61,15 @@ namespace Nz
|
||||||
|
|
||||||
inline UInt32 Swapchain::GetImageCount() const
|
inline UInt32 Swapchain::GetImageCount() const
|
||||||
{
|
{
|
||||||
return m_images.size();
|
return static_cast<UInt32>(m_images.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool Swapchain::IsSupported() const
|
inline bool Swapchain::IsSupported() const
|
||||||
{
|
{
|
||||||
if (!m_device->IsExtensionLoaded("VK_KHR_swapchain"))
|
if (!m_device->IsExtensionLoaded("VK_KHR_swapchain"))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
VkResult Swapchain::CreateHelper(const DeviceHandle& device, const VkSwapchainCreateInfoKHR* createInfo, const VkAllocationCallbacks* allocator, VkSwapchainKHR* handle)
|
VkResult Swapchain::CreateHelper(const DeviceHandle& device, const VkSwapchainCreateInfoKHR* createInfo, const VkAllocationCallbacks* allocator, VkSwapchainKHR* handle)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue