Class VulkanFence#
Defined in File VulkanFence.h
Inheritance Relationships#
Base Type#
public TRAP::Graphics::Fence
(Class Fence)
Class Documentation#
-
class VulkanFence : public TRAP::Graphics::Fence#
Public Functions
-
explicit VulkanFence(bool signalled = false, std::string_view name = "")#
Constructor. Fence is not signaled.
-
~VulkanFence() override#
Destructor.
-
consteval VulkanFence(const VulkanFence&) noexcept = delete#
Copy constructor.
-
consteval VulkanFence &operator=(const VulkanFence&) noexcept = delete#
Copy assignment operator.
-
VulkanFence(VulkanFence&&) noexcept = default#
Move constructor.
-
VulkanFence &operator=(VulkanFence&&) noexcept = default#
Move assignment operator.
-
constexpr VkFence GetVkFence() const noexcept#
Retrieve the VkFence handle.
- Returns:
VkFence handle.
-
virtual RendererAPI::FenceStatus GetStatus() override#
Retrieve the current status of the fence.
- Returns:
Fence status.
-
virtual void Wait() override#
Wait for the fence to be signaled.
Waits for the fence to be signaled.
Resets the fence.
-
virtual void ResetState() override#
Reset the fence to the unsignalled state.
Note
If fence is already in unsignalled state then this function has no effect.
-
explicit VulkanFence(bool signalled = false, std::string_view name = "")#