Skip to content

LiteFX::Rendering::Backends::VulkanQueue::submit

Submits a single command buffer with shared ownership and inserts a fence to wait for it.

Synopsis

Declared in <litefx/backends/vulkan.hpp>

[[dllimport, dllexport]] virtual UInt64 submit(SharedPtr<VulkanCommandBuffer const> const& commandBuffer) const override;

Description

By calling this method, the queue takes shared ownership over the commandBuffer until the fence is passed. The reference will be released during a waitFor, if the awaited fence is inserted after the associated one.

Note that submitting a command buffer that is currently recording will implicitly close the command buffer.

Return Value

The value of the fence, inserted after the command buffer.

Parameters

NameDescription
commandBufferThe command buffer to submit to the command queue.

See Also

waitFor