Sha256: 190e9b4d156b75d12ea53fa4fb70a723efc108acc6d3cf4dba0fb16091cdc96f
Contents?: true
Size: 702 Bytes
Versions: 1
Compression:
Stored size: 702 Bytes
Contents
#!/bin/bash set -x set -e cd `dirname "$0"` generate_shaders() { platform=$1 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/bin/metal -std=$platform-metal1.1 -Wall -O3 -o ./sdl.air ./SDL_shaders_metal.metal || exit $? /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/bin/metal-ar rc sdl.metalar sdl.air || exit $? /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/bin/metallib -o sdl.metallib sdl.metalar || exit $? xxd -i sdl.metallib | perl -w -p -e 's/\Aunsigned /const unsigned /;' >./SDL_shaders_metal_$platform.h rm -f sdl.air sdl.metalar sdl.metallib } generate_shaders osx generate_shaders ios
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alphatau-0.1.0 | ext/alphatau/native/sdl/src/render/metal/build-metal-shaders.sh |