Skip to content

Commit 9e4c3e3

Browse files
authored
Fix syntax error (MSVC) in Manager.cpp (KomputeProject#418)
Change VKAPI_PTR to VKAPI_ATTR Tested only on: MSVC version: `Microsoft (R) C/C++ Optimizing Compiler Version 19.43.34808 for x86` VulkanSDK version: 1.4.309.0 Latest kompute commit: 299b11f Signed-off-by: jamorphy <[email protected]>
1 parent 299b11f commit 9e4c3e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Manager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ namespace kp {
1414

1515
#ifndef KOMPUTE_DISABLE_VK_DEBUG_LAYERS
1616
#ifdef VK_VERSION_1_4
17-
VKAPI_PTR vk::Bool32 VKAPI_CALL
17+
VKAPI_ATTR vk::Bool32 VKAPI_CALL
1818
debugMessageCallback(vk::DebugReportFlagsEXT /*flags*/,
1919
vk::DebugReportObjectTypeEXT /*objectType*/,
2020
#else
21-
static VKAPI_PTR VkBool32 VKAPI_CALL
21+
static VKAPI_ATTR VkBool32 VKAPI_CALL
2222
debugMessageCallback(VkDebugReportFlagsEXT /*flags*/,
2323
VkDebugReportObjectTypeEXT /*objectType*/,
2424
#endif // VK_VERSION_1_4

0 commit comments

Comments
 (0)