source: opengl-game/compile.sh@ eea05dd

feature/imgui-sdl points-test
Last change on this file since eea05dd was 4befb76, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 5 years ago

Create a bash script for compiling shaders to SPIR-V files

  • Property mode set to 100755
File size: 409 bytes
Line 
1# TODO: Maybe turn this into a target in the makefile
2
3OS=$(uname)
4
5if [ $OS = "Darwin" ]; then
6 VULKAN_SDK_PATH=/Users/dportnoy15/Development/vulkan-sdk-macos-1.1.108.0/macOS
7fi
8if [ $OS = "Linux" ]; then
9 VULKAN_SDK_PATH=/home/dportnoy/Desktop/VulkanSDK/1.1.106.0/x86_64
10fi
11
12echo $VULKAN_SDK_PATH
13
14$VULKAN_SDK_PATH/bin/glslangValidator -V shader.vert
15$VULKAN_SDK_PATH/bin/glslangValidator -V shader.frag
Note: See TracBrowser for help on using the repository browser.