MoltenVK layers a subset of the Vulkan graphics and compute API on Apple's Metal framework so Vulkan applications can run on macOS, iOS, and tvOS.
Overview
MoltenVK implements Vulkan 1.4 graphics and compute on top of Metal on macOS, iOS, tvOS, and visionOS. Applications use standard Vulkan while MoltenVK converts SPIR-V shaders to Metal Shading Language at runtime.
The runtime ships MoltenVK itself plus an embedded shader converter; a stand-alone MoltenVKShaderConverter command-line tool is also available for offline conversion. Public Apple APIs are used so apps remain compatible with standard distribution channels.
Khronos has deprecated MoltenVK in favor of KosmicKrisp on Apple Silicon Macs while noting MoltenVK remains recommended for Intel Macs and iOS. Community maintenance continues on a best-effort basis.
Developers can consume prebuilt libraries from the Vulkan SDK on macOS or build from source with Xcode or make targets for multiple Apple platforms.
Key features
- Vulkan on Metal for Apple platforms
- Automatic SPIR-V to MSL conversion
- Vulkan 1.4 subset implementation
- Command-line shader converter tool
- Xcode and Makefile build flows
- Vulkan SDK integration on macOS
- Simulator and device support
- No private Apple API usage
Use cases
- Vulkan games on macOS
- Cross-platform graphics on iOS
- Metal-backed Vulkan porting
- Shader conversion during builds