Add an immediate error check if SPIR-V compiler fails in tests

This commit is contained in:
baldurk
2025-10-13 16:57:57 +01:00
parent 9192882273
commit 48b19e8ba4
+4
View File
@@ -527,6 +527,10 @@ std::vector<uint32_t> CompileShaderToSpv(const std::string &source_text, SPIRVTa
fread(&ret[0], sizeof(uint32_t), ret.size(), f);
fclose(f);
}
else
{
TEST_ERROR("Failed to run compiler:\n%s", command_line.c_str());
}
unlink(infile.c_str());
unlink(outfile.c_str());