|
| Swapchain (const Surface &surface, vk::SwapchainKHR swapchain, vk::Format format, vk::ColorSpaceKHR colorSpace, vk::PresentModeKHR presentMode, uint32_t imageCount, vk::Extent2D extent) noexcept |
|
bool | shouldUpdateSwapchain () const |
|
void | updateSwapchain (const Context &context, const Window &window) |
|
void | signalSwapchainRecreation () |
|
|
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 |
|
◆ 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 | |
Referenced by create().
◆ ~Swapchain()
vkcv::Swapchain::~Swapchain |
( |
| ) |
|
|
virtual |
◆ create()
creates a swap chain object out of the given window and the given context
- Parameters
-
window | a wrapper that represents a glfw window |
context | of the application |
- Returns
- returns an object of swapChain
creates and returns a swapchain with default specs
- Parameters
-
window | of the current application |
context | that keeps instance, physicalDevice and a device. |
- Returns
- swapchain
References vkcv::Window::getWindow(), and Swapchain().
Referenced by vkcv::Core::create().
◆ getExtent()
const vk::Extent2D & vkcv::Swapchain::getExtent |
( |
| ) |
const |
◆ getFormat()
vk::Format vkcv::Swapchain::getFormat |
( |
| ) |
const |
gets the chosen swapchain format
- Returns
- gets the chosen swapchain format
Referenced by vkcv::gui::GUI::GUI().
◆ getImageCount()
uint32_t vkcv::Swapchain::getImageCount |
( |
| ) |
const |
◆ getSurface()
vk::SurfaceKHR vkcv::Swapchain::getSurface |
( |
| ) |
const |
◆ getSwapchain()
const vk::SwapchainKHR & vkcv::Swapchain::getSwapchain |
( |
| ) |
const |
◆ shouldUpdateSwapchain()
bool vkcv::Swapchain::shouldUpdateSwapchain |
( |
| ) |
const |
|
private |
◆ updateSwapchain()
void vkcv::Swapchain::updateSwapchain |
( |
const Context & |
context, |
|
|
const Window & |
window |
|
) |
| |
|
private |
The documentation for this class was generated from the following files: