the vulkanSwapchain is a collection of vulkan frambuffers and image views to wich the scene will be .
More...
#include <vulkanSwapchain.h>
the vulkanSwapchain is a collection of vulkan frambuffers and image views to wich the scene will be .
◆ vulkanSwapchain()
| luna::vulkan::vulkanSwapchain::vulkanSwapchain |
( |
const swapchainSpec & |
swapChainSpec | ) |
|
◆ ~vulkanSwapchain()
| luna::vulkan::vulkanSwapchain::~vulkanSwapchain |
( |
| ) |
|
|
virtual |
◆ createSwapchain()
| VkResult luna::vulkan::vulkanSwapchain::createSwapchain |
( |
const swapchainSpec & |
swapChainSpec | ) |
|
◆ destroySwapchain()
| VkResult luna::vulkan::vulkanSwapchain::destroySwapchain |
( |
| ) |
|
|
private |
destroys the device bound swapchain.
- Returns
- VK_SUCCES
◆ getFrameBuffer()
| VkFramebuffer luna::vulkan::vulkanSwapchain::getFrameBuffer |
( |
uint8_t |
index | ) |
|
|
inline |
returns the framebuffer given an index.
- Parameters
-
| VkFrameBuffer | the framebuffer handle. |
◆ getScissor()
| VkRect2D luna::vulkan::vulkanSwapchain::getScissor |
( |
| ) |
|
returns the viewport scissor.
- Returns
- VkRect2D extent.
◆ getSurfaceFormat()
| VkFormat luna::vulkan::vulkanSwapchain::getSurfaceFormat |
( |
| ) |
|
|
inline |
returns the surface format.
- Parameters
-
◆ getViewport()
| VkViewport luna::vulkan::vulkanSwapchain::getViewport |
( |
| ) |
|
returns the main viewport handle.
- Returns
- VkViewport main handle.
◆ getViewportImage()
| VkDescriptorSet luna::vulkan::vulkanSwapchain::getViewportImage |
( |
uint8_t |
currentFrame | ) |
|
|
inline |
returns a ViewportImage descriptor.
- Parameters
-
| VkDescriptorSet | image descriptor. |
◆ initViewport()
| VkResult luna::vulkan::vulkanSwapchain::initViewport |
( |
uint32_t |
maxFramesInFlight | ) |
|
initializes the main viewport.
- Returns
- VK_SUCCESS when the initialization was succesful.
◆ recreateSwapchain()
| VkResult luna::vulkan::vulkanSwapchain::recreateSwapchain |
( |
| ) |
|
recreates the swapchain.
- Returns
- returns VK_SUCCESS on succesful creation.
◆ recreateViewport()
| VkResult luna::vulkan::vulkanSwapchain::recreateViewport |
( |
uint32_t |
maxFramesInFlight | ) |
|
recreates the swapchain.
- Parameters
-
- Returns
- VK_SUCCES when recreation was succesful.
◆ frameBuffers
| std::vector<VkFramebuffer> luna::vulkan::vulkanSwapchain::frameBuffers |
◆ init
| bool luna::vulkan::vulkanSwapchain::init = false |
|
private |
◆ m_Dset
| std::vector<VkDescriptorSet> luna::vulkan::vulkanSwapchain::m_Dset |
◆ mSwapchain
| vkb::Swapchain luna::vulkan::vulkanSwapchain::mSwapchain |
◆ mSwapchainSpec
◆ sceneViewportImages
| std::vector<VkImage> luna::vulkan::vulkanSwapchain::sceneViewportImages |
◆ sceneViewportImageViews
| std::vector<VkImageView> luna::vulkan::vulkanSwapchain::sceneViewportImageViews |
|
private |
◆ surfaceCapaBilities
| VkSurfaceCapabilitiesKHR luna::vulkan::vulkanSwapchain::surfaceCapaBilities |
|
private |
◆ swapchainImageFormat
| VkFormat luna::vulkan::vulkanSwapchain::swapchainImageFormat |
|
private |
◆ swapchainImages
| std::vector<VkImage> luna::vulkan::vulkanSwapchain::swapchainImages |
|
private |
◆ swapChainImageViews
| std::vector<VkImageView> luna::vulkan::vulkanSwapchain::swapChainImageViews |
|
private |
◆ viewportSampler
| VkSampler luna::vulkan::vulkanSwapchain::viewportSampler |
|
private |
The documentation for this class was generated from the following files:
- C:/Users/robbe/source/repos/lolrobbe2/luna/luna/src/core/vulkan/rendering/vulkanSwapchain.h
- C:/Users/robbe/source/repos/lolrobbe2/luna/luna/src/core/vulkan/rendering/vulkanSwapchain.cpp