Skip to content

LiteFX::Rendering::Backends::VulkanRenderPass::begin

Begins the render pass by recording into the external primary command buffer provided by commandBuffer.

Synopsis

Declared in <litefx/rendering.hpp>

[[dllimport]] virtual void begin(
    frame_buffer_type const& frameBuffer,
    command_buffer_type const& commandBuffer) const = 0;

Description

With this overload, the render pass does not submit commandBuffer. Ending it with end only records commands and returns 0. If the render pass has a present target, submit commandBuffer and call ISwapChain::present with the returned fence afterwards. The command buffer must be a recording primary command buffer that was created from commandQueue.

Note that pipeline and binding state is not preserved across the render pass boundaries!

Parameters

NameDescription
frameBufferThe frame buffer to obtain input attachments and render targets from.
commandBufferThe primary command buffer to record the render pass into.