source: opengl-game/compile.sh@ 99d44b2

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

Create the overlay texture using different flags based on the SDL version (2.0.9 vs 2.0.10) and change compile.sh to compile all .vert and .frag files inside the shaders folder

  • Property mode set to 100755
File size: 585 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
14shopt -s nullglob
15shopt -s extglob
16
17FILES=./!(*.spv)
18
19for f in $FILES
20do
21 shaderName=$(echo $f | sed 's/\.\/\(.*\)\..*/\1/')
22 shaderType=$(echo $f | sed 's/\.\/.*\.\(.*\)/\1/')
23 fOut="$shaderName-$shaderType.spv"
24
25 $VULKAN_SDK_PATH/bin/glslangValidator -V $f -o $fOut
26done
Note: See TracBrowser for help on using the repository browser.