KhronosGroup / MoltenVK

MoltenVK is a Vulkan Portability implementation. It layers a subset of the high-performance, industry-standard Vulkan graphics and compute API over Apple's Metal graphics framework, enabling Vulkan applications to run on macOS, iOS and tvOS.
Apache License 2.0
4.76k stars 419 forks source link

Fix visionOS build #2161

Closed mkrus closed 7 months ago

mkrus commented 7 months ago

This adds a few macros to test which platform is currently being built. Addresses some compile warnings such as missing return values. Still a fair amount of deprecation warnings to handle.

Have not actually tested the resulting binary yet.

visionOS is also not yet enabled by default, not sure if we want to require Xcode 15 just yet and couldn't find a way of doing conditional dependencies in Xcode projects or Makefiles.

Fix #2160.

CLAassistant commented 7 months ago

CLA assistant check
All committers have signed the CLA.