mirror of
https://github.com/w23/xash3d-fwgs
synced 2025-01-09 02:17:14 +01:00
1a6e967ddb
make nv_checkpoint not depend on rt split it logically from aftermath don't crash when this extension is not available
29 lines
581 B
C
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)
|