Skip to content

LiteFX::Rendering::Backends::VulkanCommandBuffer::create

Initializes a command buffer from a command queue.

Synopsis

Declared in <litefx/backends/vulkan.hpp>

[[dllimport, dllexport]] static SharedPtr<VulkanCommandBuffer> create(
    VulkanQueue 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.