source: opengl-game/compile.sh@ 5081b9a

feature/imgui-sdl
Last change on this file since 5081b9a was 187b0f5, checked in by Dmitry Portnoy <dportnoy@…>, 4 years ago

Change VulkanGame and SDLGame to only use discrete GPUs and switch the timer class to steady_clock

  • Property mode set to 100755
File size: 585 bytes
Line 
1# TODO: Figure out why calling this from a makefile gives an error about shopt not being found
2
3# This section is left here in case there's no easy way to get glslangValidator in the path on a Mac
4
5OS=$(uname)
6
7if [ $OS = "Darwin" ]; then
8 VULKAN_SDK_PATH=/Users/dportnoy15/Development/vulkan-sdk-macos-1.1.108.0/macOS
9fi
10
11shopt -s nullglob
12shopt -s extglob
13
14FILES=./!(*.spv)
15
16for f in $FILES
17do
18 shaderName=$(echo $f | sed 's/\.\/\(.*\)\..*/\1/')
19 shaderType=$(echo $f | sed 's/\.\/.*\.\(.*\)/\1/')
20 fOut="$shaderName-$shaderType.spv"
21
22 glslangValidator -V $f -o $fOut
23done
Note: See TracBrowser for help on using the repository browser.