feature/imgui-sdl
points-test
Last change
on this file since 3de31cf was c8c6da8, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 5 years ago |
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
|
-
Property mode
set to
100755
|
File size:
585 bytes
|
Rev | Line | |
---|
[4befb76] | 1 | # TODO: Maybe turn this into a target in the makefile
|
---|
| 2 |
|
---|
| 3 | OS=$(uname)
|
---|
| 4 |
|
---|
| 5 | if [ $OS = "Darwin" ]; then
|
---|
| 6 | VULKAN_SDK_PATH=/Users/dportnoy15/Development/vulkan-sdk-macos-1.1.108.0/macOS
|
---|
| 7 | fi
|
---|
| 8 | if [ $OS = "Linux" ]; then
|
---|
| 9 | VULKAN_SDK_PATH=/home/dportnoy/Desktop/VulkanSDK/1.1.106.0/x86_64
|
---|
| 10 | fi
|
---|
| 11 |
|
---|
| 12 | echo $VULKAN_SDK_PATH
|
---|
| 13 |
|
---|
[c8c6da8] | 14 | shopt -s nullglob
|
---|
| 15 | shopt -s extglob
|
---|
| 16 |
|
---|
| 17 | FILES=./!(*.spv)
|
---|
| 18 |
|
---|
| 19 | for f in $FILES
|
---|
| 20 | do
|
---|
| 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
|
---|
| 26 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.