|
Surface | m_Surface |
|
vk::SwapchainKHR | m_Swapchain |
|
vk::Format | m_Format |
|
vk::ColorSpaceKHR | m_ColorSpace |
|
vk::PresentModeKHR | m_PresentMode |
|
uint32_t | m_ImageCount |
|
vk::Extent2D | m_Extent |
|
std::atomic< bool > | m_RecreationRequired |
|
|
class | Core |
|
class | Window |
|
class | SwapchainManager |
|
◆ Swapchain()
vkcv::Swapchain::Swapchain |
( |
const Surface & |
surface, |
|
|
vk::SwapchainKHR |
swapchain, |
|
|
vk::Format |
format, |
|
|
vk::ColorSpaceKHR |
colorSpace, |
|
|
vk::PresentModeKHR |
presentMode, |
|
|
uint32_t |
imageCount, |
|
|
vk::Extent2D |
extent |
|
) |
| |
|
privatenoexcept |
Constructor of a SwapChain object glfw is not initialized in this class because ist must be sure that there exists a context first glfw is already initialized by the window class
- Parameters
-
surface | used by the swapchain |
swapchain | to show images in the window |
format | of the swapchain |
colorSpace | of the swapchain |
presentMode | of the swapchain |
imageCount | of the swapchain |
extent | of the swapchain |
Referenced by create().
◆ ~Swapchain()
vkcv::Swapchain::~Swapchain |
( |
| ) |
|
|
virtual |
◆ create()
◆ getExtent()
const vk::Extent2D & vkcv::Swapchain::getExtent |
( |
| ) |
const |
◆ getFormat()
vk::Format vkcv::Swapchain::getFormat |
( |
| ) |
const |
◆ getImageCount()
uint32_t vkcv::Swapchain::getImageCount |
( |
| ) |
const |
◆ getPresentQueueIndex()
const uint32_t & vkcv::Swapchain::getPresentQueueIndex |
( |
| ) |
const |
- Returns
- the familyQueueIndex for the surface
◆ getSurface()
vk::SurfaceKHR vkcv::Swapchain::getSurface |
( |
| ) |
const |
gets the current surface object
- Returns
- current surface
◆ getSwapchain()
const vk::SwapchainKHR & vkcv::Swapchain::getSwapchain |
( |
| ) |
const |
◆ shouldUpdateSwapchain()
bool vkcv::Swapchain::shouldUpdateSwapchain |
( |
| ) |
const |
|
private |
checks if the update flag is true
- Returns
- if an update is needed
◆ signalSwapchainRecreation()
void vkcv::Swapchain::signalSwapchainRecreation |
( |
| ) |
|
|
private |
◆ updateSwapchain()
void vkcv::Swapchain::updateSwapchain |
( |
const Context & |
context, |
|
|
const Window & |
window |
|
) |
| |
|
private |
The documentation for this class was generated from the following files: