LiteFX::Rendering::Backends::DirectX12CommandBuffer::create¶
Initializes the command buffer from a command queue.
Synopsis¶
Declared in <litefx/backends/dx12.hpp>
[[dllimport, dllexport]] static SharedPtr<DirectX12CommandBuffer> create(
DirectX12Queue const& queue,
bool begin = false,
bool primary = true);
Return Value¶
Represents a shared pointer, that expresses non-exclusive ownership.
Parameters¶
| Name | Description |
|---|---|
| queue | The parent command queue, the buffer gets submitted to. |
| begin | If set to true, the command buffer automatically starts recording by calling begin. |
| primary | true, if the command buffer is a primary command buffer. |