Assert on failure to compile glsl and unimplemented shader instrs.
This commit is contained in:
@@ -337,6 +337,7 @@ bool GL4Shader::CompileProgram(std::string source) {
|
||||
const_cast<char*>(info_log.data()));
|
||||
PLOGE("Unable to link program: %s", info_log.c_str());
|
||||
error_log_ = std::move(info_log);
|
||||
assert_always("Unable to link generated shader");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -1390,6 +1390,7 @@ bool GL4ShaderTranslator::TranslateALU(const instr_alu_t* alu, int sync) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
assert_always();
|
||||
Append(" // <UNIMPLEMENTED>\n");
|
||||
}
|
||||
}
|
||||
@@ -1440,6 +1441,7 @@ bool GL4ShaderTranslator::TranslateALU(const instr_alu_t* alu, int sync) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
// assert_always();
|
||||
Append(" // <UNIMPLEMENTED>\n");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user