FastEngine 0.9.3
A multiplayer oriented 2D engine made with Vulkan.
Loading...
Searching...
No Matches
fge::vulkan::SwapChain Class Reference

Public Member Functions

 SwapChain (SwapChain const &r)=delete
 
 SwapChain (SwapChain &&r) noexcept
 
SwapChainoperator= (SwapChain const &r)=delete
 
SwapChainoperator= (SwapChain &&r) noexcept=delete
 
void create (VkExtent2D actualExtent, LogicalDevice const &logicalDevice, PhysicalDevice const &physicalDevice, Surface const &surface, VkPresentModeKHR wantedPresentMode)
 
void destroy ()
 
VkSwapchainKHR getSwapChain () const
 
std::vector< VkImage > const & getSwapChainImages () const
 
VkFormat getSwapChainImageFormat () const
 
VkExtent2D getSwapChainExtent () const
 
std::vector< VkImageView > const & getSwapChainImageViews () const
 
LogicalDevice const * getLogicalDevice () const
 

Static Public Member Functions

static VkSurfaceFormatKHR chooseSwapSurfaceFormat (std::vector< VkSurfaceFormatKHR > const &availableFormats)
 
static VkPresentModeKHR chooseSwapPresentMode (std::vector< VkPresentModeKHR > const &availablePresentModes, VkPresentModeKHR wantedPresentMode)
 
static VkExtent2D chooseSwapExtent (VkSurfaceCapabilitiesKHR const &capabilities, VkExtent2D actualExtent)
 

The documentation for this class was generated from the following file: