feature/imgui-sdl
Last change
on this file since cefdf23 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
|
Rev | Line | |
---|
[187b0f5] | 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
|
---|
[4befb76] | 4 |
|
---|
| 5 | OS=$(uname)
|
---|
| 6 |
|
---|
| 7 | if [ $OS = "Darwin" ]; then
|
---|
| 8 | VULKAN_SDK_PATH=/Users/dportnoy15/Development/vulkan-sdk-macos-1.1.108.0/macOS
|
---|
| 9 | fi
|
---|
| 10 |
|
---|
[c8c6da8] | 11 | shopt -s nullglob
|
---|
| 12 | shopt -s extglob
|
---|
| 13 |
|
---|
| 14 | FILES=./!(*.spv)
|
---|
| 15 |
|
---|
| 16 | for f in $FILES
|
---|
| 17 | do
|
---|
| 18 | shaderName=$(echo $f | sed 's/\.\/\(.*\)\..*/\1/')
|
---|
| 19 | shaderType=$(echo $f | sed 's/\.\/.*\.\(.*\)/\1/')
|
---|
| 20 | fOut="$shaderName-$shaderType.spv"
|
---|
| 21 |
|
---|
[187b0f5] | 22 | glslangValidator -V $f -o $fOut
|
---|
[c8c6da8] | 23 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.