source: opengl-game/compile.sh@ b8072d3

feature/imgui-sdl
Last change on this file since b8072d3 was b8072d3, checked in by Dmitry Portnoy <dportnoy@…>, 3 years ago

Add a VkMemoryPropertyFlags parameter to SDLGame::createBufferSet
instead of hard-coding that value

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