#include <SwapChain.hpp>
Definition at line 16 of file SwapChain.hpp.
◆ SwapChain() [1/3]
ven::SwapChain::SwapChain |
( |
Device & | deviceRef, |
|
|
const VkExtent2D | windowExtentRef ) |
|
inline |
◆ SwapChain() [2/3]
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 depthImageMemorys, depthImages, depthImageViews, ven::Device::device(), device, imageAvailableSemaphores, inFlightFences, MAX_FRAMES_IN_FLIGHT, renderFinishedSemaphores, renderPass, swapChain, swapChainFramebuffers, and swapChainImageViews.
◆ SwapChain() [3/3]
ven::SwapChain::SwapChain |
( |
const SwapChain & | | ) |
|
|
delete |
◆ acquireNextImage()
VkResult ven::SwapChain::acquireNextImage |
( |
uint32_t * | imageIndex | ) |
const |
◆ chooseSwapExtent()
VkExtent2D ven::SwapChain::chooseSwapExtent |
( |
const VkSurfaceCapabilitiesKHR & | capabilities | ) |
const |
|
private |
◆ 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 & | swapChainp | ) |
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 |
◆ 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=()
◆ submitCommandBuffers()
VkResult ven::SwapChain::submitCommandBuffers |
( |
const VkCommandBuffer * | buffers, |
|
|
const uint32_t * | imageIndex ) |
◆ width()
uint32_t ven::SwapChain::width |
( |
| ) |
const |
|
inlinenodiscard |
◆ currentFrame
size_t ven::SwapChain::currentFrame = 0 |
|
private |
◆ depthImageMemorys
std::vector<VkDeviceMemory> ven::SwapChain::depthImageMemorys |
|
private |
◆ depthImages
std::vector<VkImage> ven::SwapChain::depthImages |
|
private |
◆ depthImageViews
std::vector<VkImageView> ven::SwapChain::depthImageViews |
|
private |
◆ device
Device& ven::SwapChain::device |
|
private |
◆ imageAvailableSemaphores
std::vector<VkSemaphore> ven::SwapChain::imageAvailableSemaphores |
|
private |
◆ imagesInFlight
std::vector<VkFence> ven::SwapChain::imagesInFlight |
|
private |
◆ inFlightFences
std::vector<VkFence> ven::SwapChain::inFlightFences |
|
private |
◆ m_swapChainExtent
VkExtent2D ven::SwapChain::m_swapChainExtent {} |
|
private |
◆ MAX_FRAMES_IN_FLIGHT
int ven::SwapChain::MAX_FRAMES_IN_FLIGHT = 2 |
|
staticconstexpr |
◆ oldSwapChain
std::shared_ptr<SwapChain> ven::SwapChain::oldSwapChain |
|
private |
◆ renderFinishedSemaphores
std::vector<VkSemaphore> ven::SwapChain::renderFinishedSemaphores |
|
private |
◆ renderPass
VkRenderPass ven::SwapChain::renderPass {} |
|
private |
◆ swapChain
VkSwapchainKHR ven::SwapChain::swapChain {} |
|
private |
◆ swapChainDepthFormat
VkFormat ven::SwapChain::swapChainDepthFormat {} |
|
private |
◆ swapChainFramebuffers
std::vector<VkFramebuffer> ven::SwapChain::swapChainFramebuffers |
|
private |
◆ swapChainImageFormat
VkFormat ven::SwapChain::swapChainImageFormat {} |
|
private |
◆ swapChainImages
std::vector<VkImage> ven::SwapChain::swapChainImages |
|
private |
◆ swapChainImageViews
std::vector<VkImageView> ven::SwapChain::swapChainImageViews |
|
private |
◆ windowExtent
VkExtent2D ven::SwapChain::windowExtent |
|
private |
The documentation for this class was generated from the following files: