2017-12-05 09:25:04 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
echo "Building spirv-cross"
|
|
|
|
make -j$(nproc)
|
|
|
|
|
2018-10-26 08:53:11 +00:00
|
|
|
export PATH="./external/glslang-build/output/bin:./external/spirv-tools-build/output/bin:.:$PATH"
|
2017-12-05 09:25:04 +00:00
|
|
|
echo "Using glslangValidation in: $(which glslangValidator)."
|
|
|
|
echo "Using spirv-opt in: $(which spirv-opt)."
|
|
|
|
|
2017-12-11 12:55:26 +00:00
|
|
|
./test_shaders.py shaders || exit 1
|
|
|
|
./test_shaders.py shaders --opt || exit 1
|
2018-03-13 09:39:49 +00:00
|
|
|
./test_shaders.py shaders-no-opt || exit 1
|
2017-12-11 12:55:26 +00:00
|
|
|
./test_shaders.py shaders-msl --msl || exit 1
|
|
|
|
./test_shaders.py shaders-msl --msl --opt || exit 1
|
2017-12-26 23:40:46 +00:00
|
|
|
./test_shaders.py shaders-msl-no-opt --msl || exit 1
|
2017-12-11 12:55:26 +00:00
|
|
|
./test_shaders.py shaders-hlsl --hlsl || exit 1
|
|
|
|
./test_shaders.py shaders-hlsl --hlsl --opt || exit 1
|
2018-03-13 09:39:49 +00:00
|
|
|
./test_shaders.py shaders-hlsl-no-opt --hlsl || exit 1
|
2018-06-20 18:49:58 +00:00
|
|
|
./test_shaders.py shaders-reflection --reflect || exit 1
|
2017-12-06 09:25:30 +00:00
|
|
|
|