Kohi Game Engine
vulkan_swapchain Struct Reference

Representation of the Vulkan swapchain. More...

#include <vulkan_types.h>

Data Fields

VkSurfaceFormatKHR image_format
 The swapchain image format. More...
 
u8 max_frames_in_flight
 The maximum number of "images in flight" (images simultaneously being rendered to). Typically one less than the total number of images available. More...
 
renderer_config_flags flags
 Indicates various flags used for swapchain instantiation. More...
 
VkSwapchainKHR handle
 The swapchain internal handle. More...
 
u32 image_count
 The number of swapchain images. More...
 
texturerender_textures
 An array of render targets, which contain swapchain images. More...
 
texturedepth_textures
 An array of depth textures, one per frame. More...
 
render_target render_targets [3]
 Render targets used for on-screen rendering, one per frame. The images contained in these are created and owned by the swapchain. More...
 

Detailed Description

Representation of the Vulkan swapchain.

Field Documentation

◆ depth_textures

texture* depth_textures

An array of depth textures, one per frame.

◆ flags

Indicates various flags used for swapchain instantiation.

◆ handle

VkSwapchainKHR handle

The swapchain internal handle.

◆ image_count

u32 image_count

The number of swapchain images.

◆ image_format

VkSurfaceFormatKHR image_format

The swapchain image format.

◆ max_frames_in_flight

u8 max_frames_in_flight

The maximum number of "images in flight" (images simultaneously being rendered to). Typically one less than the total number of images available.

◆ render_targets

render_target render_targets[3]

Render targets used for on-screen rendering, one per frame. The images contained in these are created and owned by the swapchain.

◆ render_textures

texture* render_textures

An array of render targets, which contain swapchain images.


The documentation for this struct was generated from the following file: