53 VkSwapchainKHR swap_chain;
56 VkSurfaceFormatKHR surface_format;
61 VkFormat color_format;
62 VkColorSpaceKHR color_space;
63 VkPresentModeKHR present_mode;
96 VkFormat color_format,
97 VkColorSpaceKHR color_space,
98 VkPresentModeKHR present_mode);
107 VkSemaphore semaphore,
119 VkSemaphore semaphore);
A pair of VkImage and VkImageView.
Definition: comp_vk_swapchain.h:38
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.
Definition: comp_vk_swapchain.c:79
Wraps and manage VkSwapchainKHR and VkSurfaceKHR, used by Compositor code.
Definition: comp_vk_swapchain.h:49
void vk_swapchain_cleanup(struct vk_swapchain *sc)
Free all managed resources on the given vk_swapchain, does not free the struct itself.
Definition: comp_vk_swapchain.c:466
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.
Definition: comp_vk_swapchain.c:245
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.
Definition: comp_vk_swapchain.c:235
Common Vulkan code header.
void(* vk_swapchain_cb)(uint32_t width, uint32_t height, void *priv)
Callback when a vk_swapchain changes size.
Definition: comp_vk_swapchain.h:31
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.
Definition: comp_vk_swapchain.c:90
A bundle of Vulkan functions and objects, used by both Compositor and Compositor client code...
Definition: vk_helpers.h:34