Skip to content

LiteFX::Rendering::Backends::VulkanFrameBuffer::create

Initializes a Vulkan frame buffer.

Synopses

Declared in <litefx/backends/vulkan.hpp>

Initializes a Vulkan frame buffer.

[[dllimport, dllexport]] static SharedPtr<VulkanFrameBuffer> create(
    VulkanDevice const& device,
    Size2d const& renderArea,
    StringView name = "");

» more...

Initializes a Vulkan frame buffer.

[[dllimport, dllexport]] static SharedPtr<VulkanFrameBuffer> create(
    VulkanDevice const& device,
    Size2d const& renderArea,
    FrameBuffer<IVulkanImage>::allocation_callback_type allocationCallback,
    StringView name = "");

» more...

Return Value

A pointer to the newly created frame buffer instance.

Parameters

NameDescription
deviceThe device the frame buffer is allocated on.
renderAreaThe initial size of the render area.
nameThe name of the frame buffer.
allocationCallbackA callback that gets invoked, when the frame buffer allocates a new image.