Skip to content

LiteFX::Rendering::Backends::DirectX12Queue::submit

Submits a set of command buffers with shared ownership and inserts a fence to wait for them.

Synopsis

Declared in <litefx/rendering.hpp>

[[dllimport]] virtual UInt64 submit(Enumerable<SharedPtr<command_buffer_type const>> commandBuffers) const = 0;

Description

By calling this method, the queue takes shared ownership over the commandBuffers 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 buffers.

Parameters

NameDescription
commandBuffersThe command buffers to submit to the command queue.

See Also

waitFor