2021-01-18 19:54:48 +01:00
|
|
|
#pragma once
|
|
|
|
#include "vk_core.h"
|
|
|
|
|
|
|
|
#include "xash3d_types.h"
|
|
|
|
|
|
|
|
typedef struct vk_framectl_s {
|
2021-01-23 19:54:44 +01:00
|
|
|
struct {
|
|
|
|
VkFormat format;
|
|
|
|
device_memory_t device_memory;
|
|
|
|
VkImage image;
|
|
|
|
VkImageView image_view;
|
|
|
|
} depth;
|
2021-01-18 19:54:48 +01:00
|
|
|
VkRenderPass render_pass;
|
|
|
|
|
|
|
|
VkSurfaceCapabilitiesKHR surface_caps;
|
|
|
|
VkSwapchainCreateInfoKHR create_info;
|
|
|
|
VkSwapchainKHR swapchain;
|
|
|
|
uint32_t num_images;
|
|
|
|
VkImage *images;
|
|
|
|
VkImageView *image_views;
|
|
|
|
VkFramebuffer *framebuffers;
|
|
|
|
} vk_framectl_t;
|
|
|
|
|
|
|
|
extern vk_framectl_t vk_frame;
|
|
|
|
|
|
|
|
qboolean VK_FrameCtlInit( void );
|
|
|
|
void VK_FrameCtlShutdown( void );
|
|
|
|
|
|
|
|
void R_BeginFrame( qboolean clearScene );
|
2021-01-23 19:54:44 +01:00
|
|
|
void GL_RenderFrame( const struct ref_viewpass_s *rvp );
|
2021-01-18 19:54:48 +01:00
|
|
|
void R_EndFrame( void );
|