diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-06-29 01:44:07 -0400 |
|---|---|---|
| committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-10-04 18:52:50 -0400 |
| commit | 38fc995f6cc2c2af29abc976ddb45b72873b2cc4 (patch) | |
| tree | a73839d510c79a5e296e54a6768868f788abd45d /src/video_core/shader/expr.cpp | |
| parent | 6fdd501113d5094f9148046c3b17cf2239e99aa5 (diff) | |
gl_shader_decompiler: Implement AST decompiling
Diffstat (limited to 'src/video_core/shader/expr.cpp')
| -rw-r--r-- | src/video_core/shader/expr.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/shader/expr.cpp b/src/video_core/shader/expr.cpp index ebce6339b..ca633ffb1 100644 --- a/src/video_core/shader/expr.cpp +++ b/src/video_core/shader/expr.cpp @@ -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 |
