Skip to content

LiteFX::Rendering::Backends::DirectX12Device::makeFrameBuffer

Creates a new frame buffer instance.

Synopsis

Declared in <litefx/backends/dx12.hpp>

[[dllimport, nodiscard, dllexport]] virtual SharedPtr<DirectX12FrameBuffer> makeFrameBuffer(
    StringView name,
    Size2d const& renderArea,
    FrameBuffer<IDirectX12Image>::allocation_callback_type allocationCallback) const override;

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.