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.
- Аргументы
-
| device | The Vulkan logical device. |
| maxFramesInFlight | Maximum number of frames in flight. |
- Исключения
-
| std::runtime_error | Thrown 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.
- Аргументы
-
| currentFrame | The 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.
- Аргументы
-
| currentFrame | The 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.
- Аргументы
-
| currentFrame | The index of the current frame. |
- Возвращает
- Reference to the render finished semaphore.
Объявления и описания членов классов находятся в файлах:
- Engine/Modules/RenderModule/Vulkan/VulkanObjects/VulkanSynchronizationManager.h
- Engine/Modules/RenderModule/Vulkan/VulkanObjects/VulkanSynchronisationManager.cpp