![]() Or, if you want to use Xcode 14 or later to build MoltenVK, in order to be able to use the ![]() If you need to use Xcode 13 or earlier to link MoltenVK.xcframework to your app or game,įirst build MoltenVK with Xcode 13 or earlier. If you link to a MoltenVK.xcframework that was built with Xcode 14 or later,Īlso use Xcode 14 or later to link it to your app or game. Note: Xcode 14 introduced a new static linkage model that is not compatible with previous To access these frameworks,Īnd to avoid build errors, be sure to use the latest publicly available version of Xcode. See the ExternalRevisions/README.md document.ĭuring building, MoltenVK references the latest Apple SDK frameworks. Running fetchDependencies repeatedly with different platforms will accumulateįor more information about the external open-source libraries used by MoltenVK, ![]() With each XCFramework containing binaries for all supported platforms and simulators. The -all selection is the same as entering all of the other platform choices,Īnd will result in a single XCFramework for each external dependency library, The result is a single XCFrameworkįor each external dependency library, with each XCFramework containing binaries for You can specify multiple of these selections. To fetch MoltenVK source code, clone this MoltenVK repository, and then run theįetchDependencies script to retrieve and build several external open-source librariesĮnsure you have cmake and python3 installed: MoltenVKShaderConverter macOS tool for converting shaders at development time from the command line. In addition,īoth the SPIR-V and GLSL converters are packaged into a stand-alone command-line Runtime to automatically convert SPIR-V shaders to their MSL equivalents. The converter is embedded in the MoltenVK Metal Shading Language (MSL) shader code. Shader code, and converts GLSL shader source code to SPIR-V shader code and/or MoltenVKShaderConverter converts SPIR-V shader code to Metal Shading Language (MSL) MoltenVK is a implementation of an almost-complete subset of the The MoltenVK runtime package contains two products: Undocumented API calls or features, so your app will be compatible with all standard distribution Publicly available API's, including Metal. To provide Vulkan capability to the macOS, iOS, and tvOS platforms, MoltenVK uses Apple's MoltenVK automatically converts your SPIR-V shaders ![]() Metal uses a different shading language, the Metal Shading Language (MSL), than Simulators, and Mac Catalyst on macOS 11.0+, and all Apple architectures, including Apple Silicon. Games and applications, and to run them across many platforms, including macOS, iOS, tvOS, Graphics and compute functionality to develop modern, cross-platform, high-performance graphical Graphics and compute framework on macOS, iOS, and tvOS. Graphics and compute functionality, that is built on Apple's Metal MoltenVK is a layered implementation of Vulkan 1.2 To learn how to integrate the MoltenVK runtime library into a game or application, Provided in the macOS Vulkan SDK, you can use this document to learn how to build a MoltenVK If you are developing a Vulkan application for iOS or tvOS, or are developing a VulkanĪpplication for macOS and want to use a different version of the MoltenVK runtime library VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR flag. See the description of the VK_KHR_portability_enumerationĮxtension in the Vulkan specification for more information about the use of the VkEnumeratePhysicalDevices() if the VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHRįlag is enabled in vkCreateInstance(). Will only include MoltenVK VkPhysicalDevices in the list returned by Vulkan Loader from the Vulkan SDK to run MoltenVK on macOS, the Vulkan Loader Vulkan SDK and the MoltenVK library included in it.īecause MoltenVK supports the VK_KHR_portability_subset extension, when using the If you are developing a Vulkan application for macOS, it is highly recommended that you use the Tool for application developers because they identify inappropriate use of the Vulkan API. The Validation Layers included in the Vulkan SDK are an essential debugging Vulkan is a layeredĪrchitecture that allows applications to add additional functionality without modifying theĪpplication itself. The Vulkan SDK includes a MoltenVK runtime library for macOS. The recommended method for developing a Vulkan application for macOS is to use the Developing Vulkan Applications on macOS, iOS, and tvOSĭeveloping Vulkan Applications for macOS, iOS, and tvOS.Copyright (c) 2015-2023 The Brenwill Workshop Ltd.
0 Comments
Leave a Reply. |