Files
NazaraEngine/include/Nazara/VulkanRenderer/VulkanSwapchain.inl
SirLynix 5130a2ff84 Remove Config.hpp options and refactor headers
- Rename Config.hpp to Export.hpp
- Remove Debug.hpp and DebugOff.hpp (not used anymore)
2024-02-19 15:11:34 +01:00

34 lines
733 B
C++

// Copyright (C) 2024 Jérôme "SirLynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Vulkan renderer"
// For conditions of distribution and use, see copyright notice in Export.hpp
namespace Nz
{
inline VulkanDevice& VulkanSwapchain::GetDevice()
{
return m_device;
}
inline const VulkanDevice& VulkanSwapchain::GetDevice() const
{
return m_device;
}
inline Vk::QueueHandle& VulkanSwapchain::GetGraphicsQueue()
{
return m_graphicsQueue;
}
inline VkImage VulkanSwapchain::GetImage(std::size_t imageIndex) const
{
return m_swapchain.GetImage(SafeCast<UInt32>(imageIndex)).image;
}
inline const Vk::Swapchain& VulkanSwapchain::GetSwapchain() const
{
return m_swapchain;
}
}