moltenvk_deps

Crates.iomoltenvk_deps
lib.rsmoltenvk_deps
version0.1.8
sourcesrc
created_at2018-12-21 02:52:47.179264
updated_at2019-06-20 06:48:08.301307
descriptionDownloads and installs MoltenVK / VulkanSDK for macOS
homepage
repositoryhttps://github.com/freesig/moltenvk_deps
max_upload_size
id103040
size18,889
Tom (freesig)

documentation

https://docs.rs/moltenvk_deps

README

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
Commit count: 35

cargo fmt