diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2026-05-05 00:43:54 +0200 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2026-05-05 00:49:12 +0200 |
| commit | c3aac9026951e2a6e35e76b9c7d36e114a281453 (patch) | |
| tree | bdfc2ab5d5f1d196ba8c7a76371a29911f75913e /include/vk-utils.hpp | |
| parent | 754249d9c652ef941e6b082d2e86538d15ba9434 (diff) | |
Remove old api and move api-test content to src and include dirs
Diffstat (limited to 'include/vk-utils.hpp')
| -rw-r--r-- | include/vk-utils.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/vk-utils.hpp b/include/vk-utils.hpp new file mode 100644 index 0000000..f26d2a3 --- /dev/null +++ b/include/vk-utils.hpp @@ -0,0 +1,12 @@ +#pragma once + +#ifdef _DEBUG +#define VKCHECK(result) assert((result) == VK_SUCCESS) +#else +#define VKCHECK(result) (void)result +#endif + +VKAPI_ATTR VkBool32 VKAPI_CALL debug_callback(VkDebugUtilsMessageSeverityFlagBitsEXT severity, + VkDebugUtilsMessageTypeFlagsEXT type, + const VkDebugUtilsMessengerCallbackDataEXT* data, + void*); |
