Fix client build with vulkan 1.4.304

This commit is contained in:
Patrick Nicolas
2025-01-24 20:51:42 +01:00
parent 713138b781
commit 3a776a523f
2 changed files with 24 additions and 21 deletions
+14 -8
View File
@@ -157,14 +157,20 @@ class application : public singleton<application>
void loop();
std::mutex debug_report_mutex;
static VkBool32 vulkan_debug_report_callback(VkDebugReportFlagsEXT flags,
VkDebugReportObjectTypeEXT objectType,
uint64_t object,
size_t location,
int32_t messageCode,
const char * pLayerPrefix,
const char * pMessage,
void * pUserData);
static VkBool32 vulkan_debug_report_callback(
#if VK_HEADER_VERSION >= 304
vk::DebugReportFlagsEXT flags,
vk::DebugReportObjectTypeEXT objectType,
#else
VkDebugReportFlagsEXT flags,
VkDebugReportObjectTypeEXT objectType,
#endif
uint64_t object,
size_t location,
int32_t messageCode,
const char * pLayerPrefix,
const char * pMessage,
void * pUserData);
std::unordered_set<uint64_t> debug_report_ignored_objects;
std::unordered_map<uint64_t, std::string> debug_report_object_name;