Monado OpenXR Runtime
Data Structures | Typedefs | Functions
comp_vk_swapchain.h File Reference

Vulkan swapchain code header. More...

#include "vk/vk_helpers.h"
Include dependency graph for comp_vk_swapchain.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  vk_swapchain_buffer
 A pair of VkImage and VkImageView. More...
 
struct  vk_swapchain
 Wraps and manage VkSwapchainKHR and VkSurfaceKHR, used by Compositor code. More...
 

Typedefs

typedef void(* vk_swapchain_cb) (uint32_t width, uint32_t height, void *priv)
 Callback when a vk_swapchain changes size. More...
 

Functions

void vk_swapchain_init (struct vk_swapchain *sc, struct vk_bundle *vk, vk_swapchain_cb dimension_cb, void *priv)
 Wraps and manage VkSwapchainKHR and VkSurfaceKHR, used by Compositor code. More...
 
void vk_swapchain_create (struct vk_swapchain *sc, uint32_t width, uint32_t height, VkFormat color_format, VkColorSpaceKHR color_space, VkPresentModeKHR present_mode)
 Initialize the given vk_swapchain, does not allocate. More...
 
VkResult vk_swapchain_acquire_next_image (struct vk_swapchain *sc, VkSemaphore semaphore, uint32_t *index)
 Acquire a image index from the given vk_swapchain for rendering. More...
 
VkResult vk_swapchain_present (struct vk_swapchain *sc, VkQueue queue, uint32_t index, VkSemaphore semaphore)
 Make the given vk_swapchain present the next acquired image. More...
 
void vk_swapchain_cleanup (struct vk_swapchain *sc)
 Free all managed resources on the given vk_swapchain, does not free the struct itself. More...
 

Detailed Description

Vulkan swapchain code header.

Author
Lubosz Sarnecki lubos.nosp@m.z.sa.nosp@m.rneck.nosp@m.i@co.nosp@m.llabo.nosp@m.ra.c.nosp@m.om
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m