Class VulkanFence#

Inheritance Relationships#

Base Type#

Class Documentation#

class VulkanFence : public TRAP::Graphics::Fence#

Public Functions

explicit VulkanFence(bool signalled = false, std::string_view name = "")#

Constructor. Fence is not signaled.

Parameters:
  • signalled – Whether the Fence should be in signalled state or not. Default: Not signalled.

  • nameOptional: Name for the Fence.

~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.

  1. Waits for the fence to be signaled.

  2. 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.