LiteFX::Rendering::Backends::DirectX12Queue::submit¶
Submits a single command buffer with shared ownership and inserts a fence to wait for it.
Synopsis¶
Declared in <litefx/rendering.hpp>
[[dllimport, dllexport]] virtual UInt64 submit(SharedPtr<command_buffer_type> const& commandBuffer) const;
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¶
| Name | Description |
|---|---|
| commandBuffer | The command buffer to submit to the command queue. |
See Also¶
waitFor