uint8_t driverUUID[VK_UUID_SIZE];
};
+struct vk_swapchain
+{
+ VkSwapchainKHR swapchain;
+ VkSurfaceKHR surface;
+ VkSurfaceFormatKHR surf_fmt;
+ uint32_t num_images;
+ VkExtent2D extent2d;
+};
+
struct vk_image_props
{
uint32_t w;
uint32_t n_attachments,
float x, float y, float w, float h);
+/* swapchain */
+
+bool
+vk_create_swapchain(struct vk_ctx *ctx,
+ int width, int height,
+ int num_qfam,
+ struct vk_swapchain *swapchain);
+void
+vk_destroy_swapchain(struct vk_ctx *ctx,
+ struct vk_swapchain *swapchain);
+
/* transitions */
void