Skip to content

finite_render_create_swapchain

The finite_render_create_swapchain function creates a Vulkan swapchain using the provided capabilities and render configuration.

TypeDescription
FiniteRender *renderThe render context to store the created swapchain.
FiniteRenderSwapchainInfo infoHolds surface capabilities for configuring the swapchain.
#include <finite/log.h>
#include <finite/render.h>
FiniteRenderSwapchainInfo info = {
.caps = surfaceCapabilities
};
finite_render_create_swapchain(render, info);

Call this after configuring the render surface and selecting the image format and present mode. It will create the swapchain used for rendering frames