Monado OpenXR Runtime
|
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"
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... | |
Vulkan swapchain code.