Manages the Vulkan swap chain, which handles image presentation and synchronization.
Подробнее...
#include <VulkanSwapChain.h>
|
| VulkanSwapChain (VkDevice device, VkSurfaceKHR surface, VkExtent2D extent, SwapChainSupportDetails swapChainSupportDetails, QueueFamilyIndices queueFamilyIndices) |
| Constructs a Vulkan swap chain.
|
|
| ~VulkanSwapChain () |
| Destroys the swap chain and its associated resources.
|
|
void | recreateSwapChain () |
| Recreates the swap chain in case of window resizing or other changes.
|
|
VkSwapchainKHR | getSwapChain () const |
| Retrieves the Vulkan swap chain handle.
|
|
VkSurfaceFormatKHR | getSurfaceFormat () const |
| Retrieves the surface format of the swap chain images.
|
|
VkExtent2D | getExtent () const |
| Retrieves the swap chain image extent (dimensions).
|
|
void | setExtent (const VkExtent2D &extent) |
| Sets the swap chain extent (dimensions).
|
|
const std::vector< VkImageView > & | getImageViews () const |
| Retrieves the list of image views associated with the swap chain images.
|
|
Manages the Vulkan swap chain, which handles image presentation and synchronization.
◆ VulkanSwapChain()
Constructs a Vulkan swap chain.
- Аргументы
-
device | Vulkan logical device. |
surface | Vulkan rendering surface. |
extent | Desired swap chain extent. |
swapChainSupportDetails | Details of swap chain support capabilities. |
queueFamilyIndices | Queue family indices for the device. |
◆ getExtent()
VkExtent2D VulkanSwapChain::getExtent |
( |
| ) |
const |
|
inline |
Retrieves the swap chain image extent (dimensions).
- Возвращает
- Extent (width and height) of swap chain images.
◆ getImageViews()
const std::vector< VkImageView > & VulkanSwapChain::getImageViews |
( |
| ) |
const |
|
inline |
Retrieves the list of image views associated with the swap chain images.
- Возвращает
- Reference to a vector of image views.
◆ getSurfaceFormat()
VkSurfaceFormatKHR VulkanSwapChain::getSurfaceFormat |
( |
| ) |
const |
|
inline |
Retrieves the surface format of the swap chain images.
- Возвращает
- Surface format used by the swap chain.
◆ getSwapChain()
VkSwapchainKHR VulkanSwapChain::getSwapChain |
( |
| ) |
const |
|
inline |
Retrieves the Vulkan swap chain handle.
- Возвращает
- Handle to the Vulkan swap chain.
◆ setExtent()
void VulkanSwapChain::setExtent |
( |
const VkExtent2D & | extent | ) |
|
|
inline |
Sets the swap chain extent (dimensions).
- Аргументы
-
Объявления и описания членов классов находятся в файлах:
- Engine/Modules/RenderModule/Vulkan/VulkanObjects/VulkanSwapChain.h
- Engine/Modules/RenderModule/Vulkan/VulkanObjects/VulkanSwapChain.cpp