gn: Fix validation layer build

closes KhronosGroup/Vulkan-ValidationLayers/issues/6780
This commit is contained in:
Juan Ramos 2023-10-23 14:24:43 -06:00 committed by Juan Ramos
parent 3f7a5370a3
commit aff5071d4e

View file

@ -27,9 +27,15 @@ config("vulkan_headers_config") {
if (is_fuchsia) {
defines += [ "VK_USE_PLATFORM_FUCHSIA" ]
}
if (is_mac) {
if (is_apple) {
defines += [ "VK_USE_PLATFORM_METAL_EXT" ]
}
if (is_mac) {
defines += [ "VK_USE_PLATFORM_MACOS_MVK" ]
}
if (is_ios) {
defines += [ "VK_USE_PLATFORM_IOS_MVK" ]
}
if (defined(is_ggp) && is_ggp) {
defines += [ "VK_USE_PLATFORM_GGP" ]
}