2017-12-05 12:25:04 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
echo "Building spirv-cross"
|
|
|
|
make -j$(nproc)
|
|
|
|
|
2017-12-12 15:28:15 +03:00
|
|
|
export PATH="./external/glslang-build/StandAlone:./external/spirv-tools-build/tools:.:$PATH"
|
2017-12-05 12:25:04 +03:00
|
|
|
echo "Using glslangValidation in: $(which glslangValidator)."
|
|
|
|
echo "Using spirv-opt in: $(which spirv-opt)."
|
|
|
|
|
2017-12-06 12:25:30 +03:00
|
|
|
./test_shaders.py shaders --update || exit 1
|
|
|
|
./test_shaders.py shaders --update --opt || exit 1
|
|
|
|
./test_shaders.py shaders-msl --msl --update || exit 1
|
|
|
|
./test_shaders.py shaders-msl --msl --update --opt || exit 1
|
2018-01-06 07:22:36 +03:00
|
|
|
./test_shaders.py shaders-msl-no-opt --msl --update || exit 1
|
2017-12-06 12:25:30 +03:00
|
|
|
./test_shaders.py shaders-hlsl --hlsl --update || exit 1
|
|
|
|
./test_shaders.py shaders-hlsl --hlsl --update --opt || exit 1
|
|
|
|
|