9#include <vulkan/vulkan.h>
59 static VkPresentModeKHR
chooseSwapPresentMode(
const std::vector<VkPresentModeKHR> &availablePresentModes);
60 VkExtent2D
chooseSwapExtent(
const VkSurfaceCapabilitiesKHR &capabilities)
const;
This file contains the Device class.
std::vector< VkImage > swapChainImages
SwapChain & operator=(const SwapChain &)=delete
SwapChain(const SwapChain &)=delete
size_t imageCount() const
VkFramebuffer getFrameBuffer(const unsigned long index) const
std::vector< VkImageView > depthImageViews
VkExtent2D chooseSwapExtent(const VkSurfaceCapabilitiesKHR &capabilities) const
VkRenderPass getRenderPass() const
static VkPresentModeKHR chooseSwapPresentMode(const std::vector< VkPresentModeKHR > &availablePresentModes)
VkExtent2D getSwapChainExtent() const
std::vector< VkImageView > swapChainImageViews
std::vector< VkFramebuffer > swapChainFramebuffers
VkFormat getSwapChainImageFormat() const
float extentAspectRatio() const
SwapChain(Device &deviceRef, const VkExtent2D windowExtentRef, std::shared_ptr< SwapChain > previous)
VkResult acquireNextImage(uint32_t *imageIndex) const
VkImageView getImageView(const int index) const
std::vector< VkFence > inFlightFences
void createFramebuffers()
bool compareSwapFormats(const SwapChain &swapChainp) const
VkFormat swapChainDepthFormat
void createDepthResources()
std::vector< VkSemaphore > renderFinishedSemaphores
std::vector< VkFence > imagesInFlight
VkFormat findDepthFormat() const
VkFormat swapChainImageFormat
VkResult submitCommandBuffers(const VkCommandBuffer *buffers, const uint32_t *imageIndex)
static constexpr int MAX_FRAMES_IN_FLIGHT
std::vector< VkDeviceMemory > depthImageMemorys
VkExtent2D m_swapChainExtent
SwapChain(Device &deviceRef, const VkExtent2D windowExtentRef)
std::shared_ptr< SwapChain > oldSwapChain
std::vector< VkImage > depthImages
std::vector< VkSemaphore > imageAvailableSemaphores
static VkSurfaceFormatKHR chooseSwapSurfaceFormat(const std::vector< VkSurfaceFormatKHR > &availableFormats)