forked from FWGS/xash3d-fwgs
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
4 changed files
with
81 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,28 @@ | ||
#pragma once | ||
#ifdef USE_AFTERMATH | ||
|
||
#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) |