An open API service indexing awesome lists of open source software.

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

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
```