#macos #vulkan #env-vars #moltenvk #vulkansdk

moltenvk_deps

Downloads and installs MoltenVK / VulkanSDK for macOS

8 releases

0.1.8 Jun 20, 2019
0.1.7 Jun 20, 2019
0.1.6 May 26, 2019
0.1.5 Feb 15, 2019
0.1.0 Dec 21, 2018

#105 in macOS and iOS APIs

Download history 62/week @ 2023-11-23 30/week @ 2023-11-30 43/week @ 2023-12-07 68/week @ 2023-12-14 65/week @ 2023-12-21 19/week @ 2023-12-28 37/week @ 2024-01-04 60/week @ 2024-01-11 55/week @ 2024-01-18 26/week @ 2024-01-25 22/week @ 2024-02-01 45/week @ 2024-02-08 76/week @ 2024-02-15 89/week @ 2024-02-22 68/week @ 2024-02-29 52/week @ 2024-03-07

299 downloads per month

MIT license

17KB
316 lines

moltenvk_deps

Gets Macos dependencies for MoltenVK and Volkano-rs. Apple do not directly support Vulkan so we need MoltenVK in order to bind to Metal. This allows Macos users to automatically get the requirements to use Volkano-rs.

This crate will check you have the Vulkan SDK from Lunar installed and the required environment variables set.

If you don't have them it will download and unpack sdk. Then it will set the environment variables permanently in your .bash_profile or .bash_login or profile in that order. If none of these exist it will create a .bash_profile. If you are not using bash as your shell you will need to manually put the following environment variables in the correct place.

It will set:

VULKAN_SDK=$HOME/vulkan_sdk/macOS
PATH=$VULKAN_SDK/bin:$PATH
DYLD_LIBRARY_PATH=$VULKAN_SDK/lib:$DYLD_LIBRARY_PATH
VK_ICD_FILENAMES=$VULKAN_SDK/etc/vulkan/icd.d/MoltenVK_icd.json
VK_LAYER_PATH=$VULKAN_SDK/etc/vulkan/explicit_layer.d

Dependencies

~14–24MB
~334K SLoC