mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 21:02:50 +00:00
8148f256f5
It turned out I needed access to the physical device from a buffer object, so rather than storing the vulkan logical device directly in buffer (and other) objects, store the qfv logical device.
17 lines
459 B
C
17 lines
459 B
C
#ifndef __QF_Vulkan_swapchain_h
|
|
#define __QF_Vulkan_swapchain_h
|
|
|
|
typedef struct qfv_swapchain_s {
|
|
struct qfv_device_s *device;
|
|
VkSurfaceKHR surface;
|
|
VkSwapchainKHR swapchain;
|
|
int32_t numImages;
|
|
VkImage *images;
|
|
} qfv_swapchain_t;
|
|
|
|
struct vulkan_ctx_s;
|
|
qfv_swapchain_t *QFV_CreateSwapchain (struct vulkan_ctx_s *ctx,
|
|
VkSwapchainKHR old_swapchain);
|
|
void QFV_DestroySwapchain (qfv_swapchain_t *swapchain);
|
|
|
|
#endif//__QF_Vulkan_swapchain_h
|