Monado OpenXR Runtime
|
Vulkan swapchain code header. More...
#include "vk/vk_helpers.h"
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... | |
Vulkan swapchain code header.