feature/imgui-sdl
Last change
on this file since b01b50c was 756162f, checked in by Dmitry Portnoy <dportnoy@…>, 4 years ago |
Merge branch 'feature/imgui-sdl' of medievaltech.com:opengl-game into feature/imgui-sdl
|
-
Property mode
set to
100755
|
File size:
375 bytes
|
Rev | Line | |
---|
[187b0f5] | 1 | # TODO: Figure out why calling this from a makefile gives an error about shopt not being found
|
---|
| 2 |
|
---|
[b8072d3] | 3 | cd shaders
|
---|
| 4 |
|
---|
[c8c6da8] | 5 | shopt -s nullglob
|
---|
| 6 | shopt -s extglob
|
---|
| 7 |
|
---|
| 8 | FILES=./!(*.spv)
|
---|
| 9 |
|
---|
| 10 | for f in $FILES
|
---|
| 11 | do
|
---|
| 12 | shaderName=$(echo $f | sed 's/\.\/\(.*\)\..*/\1/')
|
---|
| 13 | shaderType=$(echo $f | sed 's/\.\/.*\.\(.*\)/\1/')
|
---|
| 14 | fOut="$shaderName-$shaderType.spv"
|
---|
| 15 |
|
---|
[187b0f5] | 16 | glslangValidator -V $f -o $fOut
|
---|
[c8c6da8] | 17 | done
|
---|
[b8072d3] | 18 |
|
---|
| 19 | cd ..
|
---|
Note:
See
TracBrowser
for help on using the repository browser.