|
KarmaEngine
Game Engine for practical learning and research purposes
|
Represents a Vulkan fence used for synchronization between the CPU and GPU. More...
#include <VulkanSynchronization.h>
Public Member Functions | |
| FVulkanFence (FVulkanDevice &InDevice, FVulkanFenceManager &InOwner, bool bCreateSignaled) | |
| Constructor for FVulkanFence. | |
| bool | IsSignaled () const |
| Checks if the fence is currently signaled. | |
| VkFence | GetHandle () const |
| Retrieves the Vulkan fence handle. | |
Protected Types | |
| enum class | EState { NotReady , Signaled } |
Protected Attributes | |
| VkFence | m_Handle |
| EState | m_State |
| FVulkanFenceManager & | m_Owner |
| friend | FVulkanFenceManager |
Represents a Vulkan fence used for synchronization between the CPU and GPU.
A fence is a synchronization primitive that can be used to coordinate operations between the CPU and GPU. It allows the CPU to wait for the completion of GPU operations, ensuring that resources are not accessed prematurely.
|
strongprotected |
| Enumerator | |
|---|---|
| NotReady | The fence is not signaled, initial state after reset.
|
| Signaled | The fence is signaled, indicating that the associated operations have completed.
|
| Karma::FVulkanFence::FVulkanFence | ( | FVulkanDevice & | InDevice, |
| FVulkanFenceManager & | InOwner, | ||
| bool | bCreateSignaled ) |
Constructor for FVulkanFence.
| InDevice | Reference to the owning FVulkanDevice |
| InOwner | Reference to the owning FVulkanFenceManager |
| bCreateSignaled | Whether to create the fence in a signaled state |
|
inline |
Retrieves the Vulkan fence handle.
|
inline |
Checks if the fence is currently signaled.