xash3d-fwgs/ref/vk/vk_overlay.h
Ivan 'provod' Avdeev 64e1a9b763 vk: do not draw into empty swapchain
On Windows we're seeing a max size = 0x0 swapchains. Those cannot be created or used. Make sure that we're not, and we're not trying to draw anything when there's no swapchain available.

Unfortunately we still have to call some rendering functions (without actually rendering anything) to make sure that various invariants hold.

fixes #463
2023-09-12 10:48:26 -07:00

16 lines
670 B
C

#pragma once
#include "vk_core.h"
#include "xash3d_types.h"
void R_DrawStretchRaw( float x, float y, float w, float h, int cols, int rows, const byte *data, qboolean dirty );
void R_DrawStretchPic( float x, float y, float w, float h, float s1, float t1, float s2, float t2, int texnum );
void R_DrawTileClear( int texnum, int x, int y, int w, int h );
void CL_FillRGBA( float x, float y, float w, float h, int r, int g, int b, int a );
void CL_FillRGBABlend( float x, float y, float w, float h, int r, int g, int b, int a );
qboolean R_VkOverlay_Init( void );
void R_VkOverlay_Shutdown( void );
void R_VkOverlay_DrawAndFlip( VkCommandBuffer cmdbuf, qboolean draw );