VkCV Framework  0.0.1
CV Vulkan framework
vkcv::SwapchainManager Class Reference
Collaboration diagram for vkcv::SwapchainManager:

Public Member Functions

 SwapchainManager (SwapchainManager &&other)=delete
 
 SwapchainManager (const SwapchainManager &other)=delete
 
SwapchainManageroperator= (SwapchainManager &&other)=delete
 
SwapchainManageroperator= (const SwapchainManager &other)=delete
 
SwapchainHandle createSwapchain (Window &window)
 
SwapchaingetSwapchain (const SwapchainHandle &handle)
 
void signalRecreation (const SwapchainHandle &handle)
 
std::vector< vk::Image > getSwapchainImages (const SwapchainHandle &handle)
 
std::vector< vk::ImageView > createSwapchainImageViews (SwapchainHandle &handle)
 

Private Member Functions

void destroySwapchainById (uint64_t id)
 

Private Attributes

std::vector< Swapchainm_swapchains
 
Contextm_context
 

Friends

class Core
 
class WindowManager
 

Detailed Description

Member Function Documentation

◆ createSwapchain()

SwapchainHandle vkcv::SwapchainManager::createSwapchain ( Window window)

creates a swapchain and returns the handle

Parameters
windowof the to creatable window
Returns
the swapchainHandle of the created swapchain

References vkcv::Swapchain::create().

Referenced by vkcv::WindowManager::createWindow().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createSwapchainImageViews()

std::vector< vk::ImageView > vkcv::SwapchainManager::createSwapchainImageViews ( SwapchainHandle handle)

creates the swapchain imageViews for the swapchain

Parameters
handleof the swapchain which ImageViews should be created
Returns
a ov ImageViews of the swapchain

References vkcv::Swapchain::getFormat(), vkcv::Handle::getId(), and getSwapchainImages().

Here is the call graph for this function:

◆ getSwapchain()

Swapchain & vkcv::SwapchainManager::getSwapchain ( const SwapchainHandle handle)
Parameters
handleof the swapchain to get
Returns
the reference of the swapchain

References vkcv::Handle::getId().

Here is the call graph for this function:

◆ getSwapchainImages()

std::vector< vk::Image > vkcv::SwapchainManager::getSwapchainImages ( const SwapchainHandle handle)

gets the swapchain images

Parameters
handleof the swapchain
Returns
a vector of the swapchain images

References vkcv::Handle::getId().

Referenced by createSwapchainImageViews().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ signalRecreation()

void vkcv::SwapchainManager::signalRecreation ( const SwapchainHandle handle)

sets the recreation flag fot the swapchain

Parameters
handleof the swapchain that should be recreated

References vkcv::Handle::getId().

Referenced by vkcv::WindowManager::createWindow().

Here is the call graph for this function:
Here is the caller graph for this function:

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