Wasabi
Public Member Functions | Public Attributes | List of all members
VulkanSwapChain Class Reference

Public Member Functions

bool initSurface (VkSurfaceKHR _surface)
 
void connect (VkInstance inst, VkPhysicalDevice physDev, VkDevice dev)
 
void create (VkCommandBuffer cmdBuffer, uint32_t *width, uint32_t *height, uint32_t numDesiredSwapchainImages=std::numeric_limits< uint32_t >::max())
 
VkResult acquireNextImage (VkSemaphore presentCompleteSemaphore, uint32_t *currentBuffer)
 
VkResult queuePresent (VkQueue queue, uint32_t currentBuffer)
 
VkResult queuePresent (VkQueue queue, uint32_t currentBuffer, VkSemaphore waitSemaphore)
 
void cleanup ()
 

Public Attributes

VkFormat colorFormat
 
VkColorSpaceKHR colorSpace
 
VkSwapchainKHR swapChain = VK_NULL_HANDLE
 
uint32_t imageCount
 
std::vector< VkImage > images
 
std::vector< SwapChainBufferbuffers
 
uint32_t queueNodeIndex = UINT32_MAX
 

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