Skip to content

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

NameDescription
queueThe parent command queue, the buffer gets submitted to.
beginIf set to true, the command buffer automatically starts recording by calling begin.
primarytrue, if the command buffer is a primary command buffer.