mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-16 00:40:08 +00:00
3a7cb0c2a9
Make path to spirv-cross configurable so we can be a bit more flexible with build systems used to update tests.
25 lines
1.2 KiB
Bash
Executable File
25 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ -z "$SPIRV_CROSS_PATH" ]; then
|
|
echo "Building spirv-cross"
|
|
make -j$(nproc)
|
|
SPIRV_CROSS_PATH="./spirv-cross"
|
|
fi
|
|
|
|
export PATH="./external/glslang-build/output/bin:./external/spirv-tools-build/output/bin:.:$PATH"
|
|
echo "Using glslangValidation in: $(which glslangValidator)."
|
|
echo "Using spirv-opt in: $(which spirv-opt)."
|
|
echo "Using SPIRV-Cross in: \"$SPIRV_CROSS_PATH\"."
|
|
|
|
./test_shaders.py shaders --spirv-cross "$SPIRV_CROSS_PATH" || exit 1
|
|
./test_shaders.py shaders --opt --spirv-cross "$SPIRV_CROSS_PATH" || exit 1
|
|
./test_shaders.py shaders-no-opt --spirv-cross "$SPIRV_CROSS_PATH" || exit 1
|
|
./test_shaders.py shaders-msl --msl --spirv-cross "$SPIRV_CROSS_PATH" || exit 1
|
|
./test_shaders.py shaders-msl --msl --opt --spirv-cross "$SPIRV_CROSS_PATH" || exit 1
|
|
./test_shaders.py shaders-msl-no-opt --msl --spirv-cross "$SPIRV_CROSS_PATH" || exit 1
|
|
./test_shaders.py shaders-hlsl --hlsl --spirv-cross "$SPIRV_CROSS_PATH" || exit 1
|
|
./test_shaders.py shaders-hlsl --hlsl --opt --spirv-cross "$SPIRV_CROSS_PATH" || exit 1
|
|
./test_shaders.py shaders-hlsl-no-opt --hlsl --spirv-cross "$SPIRV_CROSS_PATH" || exit 1
|
|
./test_shaders.py shaders-reflection --reflect --spirv-cross "$SPIRV_CROSS_PATH" || exit 1
|
|
|