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;
Creates a new frame buffer instance.
[[dllimport, nodiscard, dllexport]] virtual SharedPtr<VulkanFrameBuffer> makeFrameBuffer(
StringView name,
Size2d const& renderArea) const override;
Creates a new frame buffer instance.
[[dllimport, nodiscard]] SharedPtr<frame_buffer_type> makeFrameBuffer(
Size2d const& renderArea,
frame_buffer_type::allocation_callback_type allocationCallback) const;
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;
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;
Return Value¶
The instance of the frame buffer.
Note
The return value should not be discarded.
Parameters¶
| Name | Description |
|---|---|
| renderArea | The initial render area of the frame buffer. |
| name | The name of the frame buffer. |
| allocationCallback | A callback that gets invoked, when the frame buffer allocates a new image. |