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

Manages Vulkan synchronization objects, including semaphores and fences, to synchronize frame rendering. Подробнее...

#include <VulkanSynchronizationManager.h>

Открытые члены

 VulkanSynchronizationManager (VkDevice device, uint32_t maxFramesInFlight)
 Constructs a synchronization manager for handling Vulkan semaphores and fences.
 
 ~VulkanSynchronizationManager ()
 Destroys all Vulkan synchronization objects.
 
VkSemaphore & getImageAvailableSemaphore (uint32_t currentFrame)
 Retrieves the semaphore that signals when an image is available for rendering.
 
VkSemaphore & getRenderFinishedSemaphore (uint32_t currentFrame)
 Retrieves the semaphore that signals when rendering is finished.
 
VkFence & getInFlightFence (uint32_t currentFrame)
 Retrieves the fence used to synchronize frame execution.
 

Подробное описание

Manages Vulkan synchronization objects, including semaphores and fences, to synchronize frame rendering.

Конструктор(ы)

◆ VulkanSynchronizationManager()

VulkanSynchronizationManager::VulkanSynchronizationManager ( VkDevice device,
uint32_t maxFramesInFlight )

Constructs a synchronization manager for handling Vulkan semaphores and fences.

Аргументы
deviceThe Vulkan logical device.
maxFramesInFlightMaximum number of frames in flight.
Исключения
std::runtime_errorThrown if synchronization objects cannot be created.

Методы

◆ getImageAvailableSemaphore()

VkSemaphore & VulkanSynchronizationManager::getImageAvailableSemaphore ( uint32_t currentFrame)
inline

Retrieves the semaphore that signals when an image is available for rendering.

Аргументы
currentFrameThe index of the current frame.
Возвращает
Reference to the image available semaphore.

◆ getInFlightFence()

VkFence & VulkanSynchronizationManager::getInFlightFence ( uint32_t currentFrame)
inline

Retrieves the fence used to synchronize frame execution.

Аргументы
currentFrameThe index of the current frame.
Возвращает
Reference to the in-flight fence.

◆ getRenderFinishedSemaphore()

VkSemaphore & VulkanSynchronizationManager::getRenderFinishedSemaphore ( uint32_t currentFrame)
inline

Retrieves the semaphore that signals when rendering is finished.

Аргументы
currentFrameThe index of the current frame.
Возвращает
Reference to the render finished semaphore.

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