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 |
|
---|
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 |
|
---|
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 |
|
---|
22 | glslangValidator -V $f -o $fOut
|
---|
23 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.