xash3d-fwgs/ref/vk/vk_nv_aftermath.h
Ivan 'provod' Avdeev 1a6e967ddb vk: change how device extensions are checked
make nv_checkpoint not depend on rt
split it logically from aftermath
don't crash when this extension is not available
2023-02-23 13:48:41 -08:00

29 lines
581 B
C

#pragma once
#include "xash3d_types.h"
#define VK_NO_PROTOTYPES
#include <vulkan/vulkan.h>
#ifdef USE_AFTERMATH
qboolean VK_AftermathInit();
void VK_AftermathShutdown();
#endif
void R_Vk_NV_CheckpointF(VkCommandBuffer cmdbuf, const char *fmt, ...);
void R_Vk_NV_Checkpoint_Dump(void);
#define DEBUG_NV_CHECKPOINTF(cmdbuf, fmt, ...) \
do { \
if (vk_core.nv_checkpoint) { \
R_Vk_NV_CheckpointF(cmdbuf, fmt, ##__VA_ARGS__); \
} \
} while(0)
#define DEBUG_NV_CHECKPOINT_DUMP() \
do { \
if (vk_core.nv_checkpoint) { \
R_Vk_NV_Checkpoint_Dump(); \
} \
} while(0)