2017-12-05 09:25:04 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-04-12 12:44:24 +00:00
|
|
|
if [ -z "$SPIRV_CROSS_PATH" ]; then
|
|
|
|
echo "Building spirv-cross"
|
|
|
|
make -j$(nproc)
|
|
|
|
SPIRV_CROSS_PATH="./spirv-cross"
|
|
|
|
fi
|
2017-12-05 09:25:04 +00:00
|
|
|
|
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)."
|
2019-04-12 12:44:24 +00:00
|
|
|
echo "Using SPIRV-Cross in: \"$SPIRV_CROSS_PATH\"."
|
2017-12-05 09:25:04 +00:00
|
|
|
|
2019-04-12 12:44:24 +00:00
|
|
|
./test_shaders.py shaders --update --spirv-cross "$SPIRV_CROSS_PATH" || exit 1
|
|
|
|
./test_shaders.py shaders --update --opt --spirv-cross "$SPIRV_CROSS_PATH" || exit 1
|
|
|
|
./test_shaders.py shaders-no-opt --update --spirv-cross "$SPIRV_CROSS_PATH" || exit 1
|
|
|
|
./test_shaders.py shaders-msl --update --msl --spirv-cross "$SPIRV_CROSS_PATH" || exit 1
|
|
|
|
./test_shaders.py shaders-msl --update --msl --opt --spirv-cross "$SPIRV_CROSS_PATH" || exit 1
|
|
|
|
./test_shaders.py shaders-msl-no-opt --update --msl --spirv-cross "$SPIRV_CROSS_PATH" || exit 1
|
|
|
|
./test_shaders.py shaders-hlsl --update --hlsl --spirv-cross "$SPIRV_CROSS_PATH" || exit 1
|
|
|
|
./test_shaders.py shaders-hlsl --update --hlsl --opt --spirv-cross "$SPIRV_CROSS_PATH" || exit 1
|
|
|
|
./test_shaders.py shaders-hlsl-no-opt --update --hlsl --spirv-cross "$SPIRV_CROSS_PATH" || exit 1
|
|
|
|
./test_shaders.py shaders-reflection --reflect --update --spirv-cross "$SPIRV_CROSS_PATH" || exit 1
|
2018-03-13 11:38:05 +00:00
|
|
|
|
2017-12-06 09:25:30 +00:00
|
|
|
|