Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 0304668

Browse files
authored
Include new Vulkan enum values only on Fuchsia (#3658)
Fixes build.
1 parent 15cb187 commit 0304668

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vulkan/vulkan_interface.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,12 @@ std::string VulkanResultToString(VkResult result) {
6262
return "VK_RESULT_RANGE_SIZE";
6363
case VK_RESULT_MAX_ENUM:
6464
return "VK_RESULT_MAX_ENUM";
65+
#if OS_FUCHSIA
6566
case VK_ERROR_INVALID_EXTERNAL_HANDLE_KHX:
6667
return "VK_ERROR_INVALID_EXTERNAL_HANDLE_KHX";
6768
case VK_ERROR_OUT_OF_POOL_MEMORY_KHR:
6869
return "VK_ERROR_OUT_OF_POOL_MEMORY_KHR";
70+
#endif
6971
}
7072
return "Unknown Error";
7173
}

0 commit comments

Comments
 (0)