Skip to content

LiteFX::Rendering::GraphicsDevice::makeFrameBuffer

Creates a new frame buffer instance.

Synopsis

Declared in <litefx/rendering.hpp>

[[nodiscard]] virtual SharedPtr<frame_buffer_type> makeFrameBuffer(
    StringView name,
    Size2d const& renderArea,
    frame_buffer_type::allocation_callback_type allocationCallback) const = 0;

Return Value

The instance of the frame buffer.

Note

The return value should not be discarded.

Parameters

NameDescription
allocationCallbackA callback that gets invoked, when the frame buffer allocates a new image.
nameThe name of the frame buffer.
renderAreaThe initial render area of the frame buffer.