gl_shader_decompiler: Implement AST decompiling
This commit is contained in:
parent
6fdd501113
commit
38fc995f6c
11 changed files with 358 additions and 63 deletions
|
@ -72,4 +72,11 @@ bool ExprAreOpposite(Expr first, Expr second) {
|
|||
return false;
|
||||
}
|
||||
|
||||
bool ExprIsTrue(Expr first) {
|
||||
if (ExprIsBoolean(first)) {
|
||||
return ExprBooleanGet(first);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace VideoCommon::Shader
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue