projects
/
vkrt
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
moved ui.[hc] to vk.[hc]
[vkrt]
/
src
/
vk.h
diff --git
a/src/vk.h
b/src/vk.h
index
7380a40
..
140f525
100644
(file)
--- a/
src/vk.h
+++ b/
src/vk.h
@@
-21,6
+21,15
@@
struct vk_ctx
uint8_t driverUUID[VK_UUID_SIZE];
};
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;
struct vk_image_props
{
uint32_t w;
@@
-205,6
+214,17
@@
vk_clear_color(struct vk_ctx *ctx,
uint32_t n_attachments,
float x, float y, float w, float h);
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
/* transitions */
void