xash3d-fwgs/ref/vk/vk_nv_aftermath.h

29 lines
581 B
C
Raw Normal View History

#pragma once
#include "xash3d_types.h"
#define VK_NO_PROTOTYPES
#include <vulkan/vulkan.h>
#ifdef USE_AFTERMATH
qboolean VK_AftermathInit();
void VK_AftermathShutdown();
2021-06-06 23:17:35 +02:00
#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)