LampyEngine
 
Загрузка...
Поиск...
Не найдено
Класс VulkanSwapChain

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()

VulkanSwapChain::VulkanSwapChain ( VkDevice device,
VkSurfaceKHR surface,
VkExtent2D extent,
SwapChainSupportDetails swapChainSupportDetails,
QueueFamilyIndices queueFamilyIndices )

Constructs a Vulkan swap chain.

Аргументы
deviceVulkan logical device.
surfaceVulkan rendering surface.
extentDesired swap chain extent.
swapChainSupportDetailsDetails of swap chain support capabilities.
queueFamilyIndicesQueue 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).

Аргументы
extentNew extent to set.

Объявления и описания членов классов находятся в файлах: