finite_render_create_swapchain
The finite_render_create_swapchain function creates a Vulkan swapchain using the provided capabilities and render configuration.
Parameters
Section titled “Parameters”| Type | Description |
|---|---|
FiniteRender *render | The render context to store the created swapchain. |
FiniteRenderSwapchainInfo info | Holds surface capabilities for configuring the swapchain. |
Code Example
Section titled “Code Example”#include <finite/log.h>#include <finite/render.h>
FiniteRenderSwapchainInfo info = { .caps = surfaceCapabilities};
finite_render_create_swapchain(render, info);Standard Usage
Section titled “Standard Usage”Call this after configuring the render surface and selecting the image format and present mode. It will create the swapchain used for rendering frames