29 VkResult AquireNextImage(
const VkSemaphore& t_CompletedSemaphore);
31 VkResult QueuePresent(
const VkQueue& t_PresentQueue,
const VkSemaphore& t_WaitSemaphore);
37 void Recreate(
const VkExtent2D& t_Extent);
46 const VkExtent2D&
GetExtents()
const {
return m_Extents; }
49 const std::vector<VkImage>&
GetImages()
const {
return m_Images; }
51 const VkImage&
GetActiveImage()
const {
return m_Images[m_ActiveImageIndex]; }
55 const std::vector<VkImageView>&
GetImageViews()
const {
return m_ImageViews; }
59 VkSwapchainKHR m_SwapChain = VK_NULL_HANDLE;
80 void CreateResources();
85 void CreateImageViews();
104 VkSurfaceFormatKHR ChooseSwapChainSurfaceFormat(
const std::vector<VkSurfaceFormatKHR>& t_AvailableFormats);
114 VkPresentModeKHR ChooseSwapChainPresentMode(
const std::vector<VkPresentModeKHR>& t_AvialableFormats);
const VkExtent2D & GetExtents() const
Definition: SwapChain.h:46
const VkPresentModeKHR & GetPresentMode() const
Definition: SwapChain.h:45
const VkSurfaceKHR m_Surface
Definition: SwapChain.h:71
const VkFormat & GetImageFormat() const
Definition: SwapChain.h:47
VkFormat m_ImageFormat
Definition: SwapChain.h:65
const PhysicalDevice * m_PhysicalDevice
Definition: SwapChain.h:70
A physical device represents the Vulkan physical device (the GPU) that we are currently using...
Definition: PhyscialDevice.h:11
std::vector< VkSurfaceFormatKHR > Formats
Definition: SwapChain.h:11
VkExtent2D m_Extents
Definition: SwapChain.h:63
A logical device represents the application view of the device.
Definition: LogicalDevice.h:13
VkPresentModeKHR m_PresentMode
Definition: SwapChain.h:61
std::vector< VkPresentModeKHR > PresentModes
Definition: SwapChain.h:12
const size_t GetImageViewCount() const
Definition: SwapChain.h:54
Represents a swap chain that can be used throughout the program.
Definition: SwapChain.h:21
std::vector< VkImageView > m_ImageViews
Definition: SwapChain.h:75
const LogicalDevice * m_Device
Definition: SwapChain.h:69
const size_t GetImageCount() const
Definition: SwapChain.h:50
const UINT32 GetActiveImageIndex() const
Definition: SwapChain.h:52
std::vector< VkImage > m_Images
The images inside of the swap chain.
Definition: SwapChain.h:74
VkSurfaceCapabilitiesKHR Capabilities
Definition: SwapChain.h:10
uint32_t UINT32
Definition: FlingTypes.h:13
const std::vector< VkImage > & GetImages() const
Definition: SwapChain.h:49
const VkSwapchainKHR & GetVkSwapChain() const
Definition: SwapChain.h:44
Definition: SwapChain.h:8
const std::vector< VkImageView > & GetImageViews() const
Definition: SwapChain.h:55
const VkImage & GetActiveImage() const
Definition: SwapChain.h:51