LiteFX::Rendering::Backends::VulkanFrameBuffer::create¶
Initializes a Vulkan frame buffer.
Synopsis¶
Declared in <litefx/backends/vulkan.hpp>
[[dllimport, dllexport]] static SharedPtr<VulkanFrameBuffer> create(
VulkanDevice const& device,
Size2d const& renderArea,
FrameBuffer<IVulkanImage>::allocation_callback_type allocationCallback,
StringView name = "");
Return Value¶
A pointer to the newly created frame buffer instance.
Parameters¶
| Name | Description |
|---|---|
| device | The device the frame buffer is allocated on. |
| renderArea | The initial size of the render area. |
| allocationCallback | A callback that gets invoked, when the frame buffer allocates a new image. |
| name | The name of the frame buffer. |