Monado OpenXR Runtime
Functions
comp_vk_swapchain.c File Reference

Vulkan swapchain code. More...

#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "util/u_misc.h"
#include "comp_vk_swapchain.h"
Include dependency graph for comp_vk_swapchain.c:

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.

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