Skip to content

Commit

Permalink
[macOS] Eliminate Vulkan hack for macOS < 10.14
Browse files Browse the repository at this point in the history
Eliminates an undef of VK_USE_PLATFORM_METAL_EXT that works around some
unguarded `@available` checks for macOS 10.13. Our minimum macOS SDK is
now macOS 10.14 so we can safely assume Metal support since it's a
requirement for macOS 10.14.

Issue: flutter/flutter#114445
  • Loading branch information
cbracken committed Nov 10, 2022
1 parent 1ee67dc commit 68df572
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions vulkan/procs/vulkan_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@
#endif // VK_USE_PLATFORM_FUCHSIA
#endif // OS_FUCHSIA

// TODO(dnfield): vulkan_metal.h has some unguarded availability checks for
// macOS 10.13. We can remove this if we bump to 10.14 or if that gets fixed
// upstream, but fixing it upstream will take some time to flow through to
// ANGLE's DEPS.
#ifdef VK_USE_PLATFORM_METAL_EXT
#undef VK_USE_PLATFORM_METAL_EXT
#endif // VK_USE_PLATFORM_METAL_EXT

#include <vulkan/vulkan.h>

#define VK_CALL_LOG_ERROR(expression) \
Expand Down

0 comments on commit 68df572

Please sign in to comment.