https://github.com/jjyr/vulkan-tutorial-c
Learn https://vulkan-tutorial.com/Introduction with C
https://github.com/jjyr/vulkan-tutorial-c
c macos tutorial vulkan
Last synced: about 1 year ago
JSON representation
Learn https://vulkan-tutorial.com/Introduction with C
- Host: GitHub
- URL: https://github.com/jjyr/vulkan-tutorial-c
- Owner: jjyr
- Created: 2024-11-17T07:57:55.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-22T13:12:33.000Z (over 1 year ago)
- Last Synced: 2025-01-22T15:11:24.567Z (about 1 year ago)
- Topics: c, macos, tutorial, vulkan
- Language: C
- Homepage:
- Size: 1.21 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vulkan tutorial
Vulkan tutorial with C on MacOS
## Install dependencies
* glfw - windows management
* cglm - C version GLM
* molten-vk - vulkan implementation on MacOS
MacOS commands:
``` bash
# Install dependencies
# glfw
brew install glfw
# cglm
brew install cglm
# vulkan
brew install molten-vk vulkan-headers vulkan-extensionlayer vulkan-tools vulkan-utility-libraries vulkan-loader vulkan-validationlayers vulkan-profiles vulkan-volk
# install headers
cp deps/*.h /usr/local/include
# Export environment variables
export VK_LAYER_PATH="/opt/homebrew/opt/vulkan-validationlayers/share/vulkan/explicit_layer.d:VK_LAYER_PATH=/opt/homebrew/opt/vulkan-profiles/share/vulkan/explicit_layer.d"
export DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}:/opt/homebrew/lib/:/opt/homebrew/opt/vulkan-validationlayers/lib/"
# Enable debug output
export VK_LOADER_DEBUG=all
# Compile shaders
./compile-shaders.sh
# Build all
./build.sh
# Build
./build.sh tutorial
# Build and run
./build.sh tutorial --run
```