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/backends/dx12.hpp>
[[dllimport, dllexport]] virtual UInt64 submit(Enumerable<SharedPtr<DirectX12CommandBuffer const>> commandBuffers) const override;
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¶
| Name | Description |
|---|---|
| commandBuffers | The command buffers to submit to the command queue. |
See Also¶
waitFor