feature/imgui-sdl
      
      
        
          | Last change
 on this file since b8072d3 was             b8072d3, checked in by Dmitry Portnoy <dportnoy@…>, 5 years ago | 
        
          | 
Add a VkMemoryPropertyFlags parameter to SDLGame::createBufferSetinstead of hard-coding that value
 
 | 
        
          | 
              
Property                 mode
 set to                 100755 | 
        
          | File size:
            604 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 | cd shaders | 
|---|
| 12 |  | 
|---|
| 13 | shopt -s nullglob | 
|---|
| 14 | shopt -s extglob | 
|---|
| 15 |  | 
|---|
| 16 | FILES=./!(*.spv) | 
|---|
| 17 |  | 
|---|
| 18 | for f in $FILES | 
|---|
| 19 | do | 
|---|
| 20 | shaderName=$(echo $f | sed 's/\.\/\(.*\)\..*/\1/') | 
|---|
| 21 | shaderType=$(echo $f | sed 's/\.\/.*\.\(.*\)/\1/') | 
|---|
| 22 | fOut="$shaderName-$shaderType.spv" | 
|---|
| 23 |  | 
|---|
| 24 | glslangValidator -V $f -o $fOut | 
|---|
| 25 | done | 
|---|
| 26 |  | 
|---|
| 27 | cd .. | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.