Changeset 187b0f5 in opengl-game for compile.sh


Ignore:
Timestamp:
Mar 11, 2021, 2:44:43 AM (4 years ago)
Author:
Dmitry Portnoy <dportnoy@…>
Branches:
feature/imgui-sdl
Children:
301c90a
Parents:
20e4c2b
git-author:
Dmitry Portnoy <dportnoy@…> (03/11/21 02:39:25)
git-committer:
Dmitry Portnoy <dportnoy@…> (03/11/21 02:44:43)
Message:

Change VulkanGame and SDLGame to only use discrete GPUs and switch the timer class to steady_clock

File:
1 edited

Legend:

Unmodified
Added
Removed
  • compile.sh

    r20e4c2b r187b0f5  
    1 # TODO: Maybe turn this into a target in the makefile
     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
    24
    35OS=$(uname)
     
    68   VULKAN_SDK_PATH=/Users/dportnoy15/Development/vulkan-sdk-macos-1.1.108.0/macOS
    79fi
    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
    1310
    1411shopt -s nullglob
     
    2320   fOut="$shaderName-$shaderType.spv"
    2421
    25    $VULKAN_SDK_PATH/bin/glslangValidator -V $f -o $fOut
     22   glslangValidator -V $f -o $fOut
    2623done
Note: See TracChangeset for help on using the changeset viewer.