-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ravi Shankar
authored and
Ravi Shankar
committed
Oct 5, 2024
1 parent
355c6a8
commit e7feccd
Showing
8 changed files
with
105 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,3 +128,6 @@ dist | |
.yarn/build-state.yml | ||
.yarn/install-state.gz | ||
.pnp.* | ||
|
||
|
||
**.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
prev: | ||
text: 'Tutorial Overview' | ||
link: '/rust/tutorial-overview' | ||
# next: | ||
# text: 'Development environment setup' | ||
# link: '/rust/dev-env-setup' | ||
outline: [2,3] | ||
--- | ||
|
||
# Development environment setup | ||
|
||
## **macOS** | ||
This instructions assume that you are running macOS 10.11 or later, have Apple silicon, and your laptop support Metal API. | ||
|
||
### homebrew | ||
If you don't have brew installed, please [install it from here](https://brew.sh/) | ||
|
||
### Rust | ||
Ensure you have latest version of rust. You can [install it from here](https://www.rust-lang.org/tools/install) | ||
|
||
### Visual studio code or any code editor | ||
Ensure you have latest version of VS Code, you can [install it from here](https://code.visualstudio.com/download). If you prefer, you can use any other code editor of your choice. | ||
|
||
### Vulkan SDK | ||
Please download and install [Vulkan SDK](https://vulkan.lunarg.com/). If installed properly, you will vkCube in your application. If you run that, you should see rotating vkCube, something similar to this. | ||
![vkcube screenshot](/vkcube.png) | ||
|
||
Once you have verified vulkan SDK installation, add the following lines to your `~/.zshrc` file. | ||
``` shell | ||
export VULKAN_SDK=$HOME/VulkanSDK/<version>/macOS | ||
export DYLD_FALLBACK_LIBRARY_PATH=$VULKAN_SDK/lib | ||
export VK_ICD_FILENAMES=$VULKAN_SDK/share/vulkan/icd.d/MoltenVK_icd.json | ||
export VK_LAYER_PATH=$VULKAN_SDK/share/vulkan/explicit_layer.d | ||
``` | ||
|
||
::: info | ||
Don't forget to replace `<version>` with the actual version installed. On some systems, the installation path is slightly different, please ensure the correct path is exported. | ||
::: | ||
|
||
If everything went as planned, we are ready to start learning Vulkan. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters