Skip to content

LiteFX::Rendering::IRenderPass::commandBuffer

Returns a command buffer that can be currently used for recording multi-threaded commands in the render pass.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] SharedPtr<ICommandBuffer const> commandBuffer(UInt32 index) const;

Exceptions

NameThrown on
RuntimeExceptionThrown, if the render pass has not been begun.
ArgumentOutOfRangeExceptionThrown, if the frame buffer does not store a command buffer at index.

Return Value

A command buffer that can be currently used for recording multi-threaded commands in the render pass.

Parameters

NameDescription
indexThe index of the command buffer.

See Also

commandBuffers