Changeset c8c6da8 in opengl-game for compile.sh


Ignore:
Timestamp:
Aug 21, 2019, 8:19:09 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
e5d4aca
Parents:
ad31ec7
Message:

Create the overlay texture using different flags based on the SDL version (2.0.9 vs 2.0.10) and change compile.sh to compile all .vert and .frag files inside the shaders folder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • compile.sh

    rad31ec7 rc8c6da8  
    1212echo $VULKAN_SDK_PATH
    1313
    14 $VULKAN_SDK_PATH/bin/glslangValidator -V shader.vert
    15 $VULKAN_SDK_PATH/bin/glslangValidator -V shader.frag
     14shopt -s nullglob
     15shopt -s extglob
     16
     17FILES=./!(*.spv)
     18
     19for f in $FILES
     20do
     21   shaderName=$(echo $f | sed 's/\.\/\(.*\)\..*/\1/')
     22   shaderType=$(echo $f | sed 's/\.\/.*\.\(.*\)/\1/')
     23   fOut="$shaderName-$shaderType.spv"
     24
     25   $VULKAN_SDK_PATH/bin/glslangValidator -V $f -o $fOut
     26done
Note: See TracChangeset for help on using the changeset viewer.