Class for swap chain.
More...
#include <SwapChain.hpp>
Class for swap chain.
Definition at line 22 of file SwapChain.hpp.
◆ SwapChain() [1/4]
ven::SwapChain::SwapChain |
( |
Device & | deviceRef, |
|
|
const VkExtent2D | windowExtentRef ) |
|
inline |
◆ SwapChain() [2/4]
ven::SwapChain::SwapChain |
( |
Device & | deviceRef, |
|
|
const VkExtent2D | windowExtentRef, |
|
|
std::shared_ptr< SwapChain > | previous ) |
|
inline |
◆ ~SwapChain()
ven::SwapChain::~SwapChain |
( |
| ) |
|
Definition at line 7 of file swapChain.cpp.
References ven::Device::device(), m_depthImageMemory, m_depthImages, m_depthImageViews, m_device, m_imageAvailableSemaphores, m_inFlightFences, m_renderFinishedSemaphores, m_renderPass, m_swapChain, m_swapChainFrameBuffers, m_swapChainImageViews, and ven::MAX_FRAMES_IN_FLIGHT.
◆ SwapChain() [3/4]
ven::SwapChain::SwapChain |
( |
const SwapChain & | | ) |
|
|
delete |
◆ SwapChain() [4/4]
◆ acquireNextImage()
VkResult ven::SwapChain::acquireNextImage |
( |
uint32_t * | imageIndex | ) |
const |
◆ chooseSwapExtent()
VkExtent2D ven::SwapChain::chooseSwapExtent |
( |
const VkSurfaceCapabilitiesKHR & | capabilities | ) |
const |
|
nodiscardprivate |
◆ chooseSwapPresentMode()
VkPresentModeKHR ven::SwapChain::chooseSwapPresentMode |
( |
const std::vector< VkPresentModeKHR > & | availablePresentModes | ) |
|
|
staticprivate |
◆ chooseSwapSurfaceFormat()
VkSurfaceFormatKHR ven::SwapChain::chooseSwapSurfaceFormat |
( |
const std::vector< VkSurfaceFormatKHR > & | availableFormats | ) |
|
|
staticprivate |
◆ compareSwapFormats()
bool ven::SwapChain::compareSwapFormats |
( |
const SwapChain & | swapChain | ) |
const |
|
inlinenodiscard |
◆ createDepthResources()
void ven::SwapChain::createDepthResources |
( |
| ) |
|
|
private |
◆ createFrameBuffers()
void ven::SwapChain::createFrameBuffers |
( |
| ) |
|
|
private |
◆ createImageViews()
void ven::SwapChain::createImageViews |
( |
| ) |
|
|
private |
◆ createRenderPass()
void ven::SwapChain::createRenderPass |
( |
| ) |
|
|
private |
◆ createSwapChain()
void ven::SwapChain::createSwapChain |
( |
| ) |
|
|
private |
◆ createSyncObjects()
void ven::SwapChain::createSyncObjects |
( |
| ) |
|
|
private |
◆ extentAspectRatio()
float ven::SwapChain::extentAspectRatio |
( |
| ) |
const |
|
inlinenodiscard |
◆ findDepthFormat()
VkFormat ven::SwapChain::findDepthFormat |
( |
| ) |
const |
|
nodiscard |
◆ getFrameBuffer()
VkFramebuffer ven::SwapChain::getFrameBuffer |
( |
const unsigned long | index | ) |
const |
|
inlinenodiscard |
◆ getImageView()
VkImageView ven::SwapChain::getImageView |
( |
const int | index | ) |
const |
|
inlinenodiscard |
◆ getRenderPass()
VkRenderPass ven::SwapChain::getRenderPass |
( |
| ) |
const |
|
inlinenodiscard |
◆ getSwapChainExtent()
VkExtent2D ven::SwapChain::getSwapChainExtent |
( |
| ) |
const |
|
inlinenodiscard |
◆ getSwapChainImageFormat()
VkFormat ven::SwapChain::getSwapChainImageFormat |
( |
| ) |
const |
|
inlinenodiscard |
◆ height()
uint32_t ven::SwapChain::height |
( |
| ) |
const |
|
inlinenodiscard |
◆ imageCount()
size_t ven::SwapChain::imageCount |
( |
| ) |
const |
|
inlinenodiscard |
◆ init()
void ven::SwapChain::init |
( |
| ) |
|
|
private |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ submitCommandBuffers()
VkResult ven::SwapChain::submitCommandBuffers |
( |
const VkCommandBuffer * | buffers, |
|
|
const uint32_t * | imageIndex ) |
◆ width()
uint32_t ven::SwapChain::width |
( |
| ) |
const |
|
inlinenodiscard |
◆ m_currentFrame
size_t ven::SwapChain::m_currentFrame {0} |
|
private |
◆ m_depthImageMemory
std::vector<VkDeviceMemory> ven::SwapChain::m_depthImageMemory |
|
private |
◆ m_depthImages
std::vector<VkImage> ven::SwapChain::m_depthImages |
|
private |
◆ m_depthImageViews
std::vector<VkImageView> ven::SwapChain::m_depthImageViews |
|
private |
◆ m_device
Device& ven::SwapChain::m_device |
|
private |
◆ m_imageAvailableSemaphores
std::vector<VkSemaphore> ven::SwapChain::m_imageAvailableSemaphores |
|
private |
◆ m_imagesInFlight
std::vector<VkFence> ven::SwapChain::m_imagesInFlight |
|
private |
◆ m_inFlightFences
std::vector<VkFence> ven::SwapChain::m_inFlightFences |
|
private |
◆ m_oldSwapChain
std::shared_ptr<SwapChain> ven::SwapChain::m_oldSwapChain |
|
private |
◆ m_renderFinishedSemaphores
std::vector<VkSemaphore> ven::SwapChain::m_renderFinishedSemaphores |
|
private |
◆ m_renderPass
VkRenderPass ven::SwapChain::m_renderPass {} |
|
private |
◆ m_swapChain
VkSwapchainKHR ven::SwapChain::m_swapChain {} |
|
private |
◆ m_swapChainDepthFormat
VkFormat ven::SwapChain::m_swapChainDepthFormat {} |
|
private |
◆ m_swapChainExtent
VkExtent2D ven::SwapChain::m_swapChainExtent {} |
|
private |
◆ m_swapChainFrameBuffers
std::vector<VkFramebuffer> ven::SwapChain::m_swapChainFrameBuffers |
|
private |
◆ m_swapChainImageFormat
VkFormat ven::SwapChain::m_swapChainImageFormat {} |
|
private |
◆ m_swapChainImages
std::vector<VkImage> ven::SwapChain::m_swapChainImages |
|
private |
◆ m_swapChainImageViews
std::vector<VkImageView> ven::SwapChain::m_swapChainImageViews |
|
private |
◆ m_windowExtent
VkExtent2D ven::SwapChain::m_windowExtent |
|
private |
The documentation for this class was generated from the following files: