LiteFX::Rendering::Backends::VulkanDevice::makeFrameBuffer¶
Creates a new frame buffer instance.
Synopsis¶
Declared in <litefx/rendering.hpp>
[[dllimport, 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¶
| Name | Description |
|---|---|
| allocationCallback | A callback that gets invoked, when the frame buffer allocates a new image. |
| name | The name of the frame buffer. |
| renderArea | The initial render area of the frame buffer. |