Skip to content

LiteFX::Rendering::Backends::VulkanDevice::makeFrameBuffer

Creates a new frame buffer instance.

Synopses

Declared in <litefx/backends/vulkan.hpp>

Creates a new frame buffer instance.

[[dllimport, nodiscard]] SharedPtr<frame_buffer_type> makeFrameBuffer(Size2d const& renderArea) const;

» more...

Creates a new frame buffer instance.

[[dllimport, nodiscard, dllexport]] virtual SharedPtr<VulkanFrameBuffer> makeFrameBuffer(
    StringView name,
    Size2d const& renderArea) const override;

» more...

Creates a new frame buffer instance.

[[dllimport, nodiscard]] SharedPtr<frame_buffer_type> makeFrameBuffer(
    Size2d const& renderArea,
    frame_buffer_type::allocation_callback_type allocationCallback) const;

» more...

Creates a new frame buffer instance.

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

» more...

Creates a new frame buffer instance.

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

» more...

Return Value

The instance of the frame buffer.

Note

The return value should not be discarded.

Parameters

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