diff options
| author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2018-12-24 00:51:52 -0300 |
|---|---|---|
| committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-01-15 17:54:53 -0300 |
| commit | b11e0b94c7ce0d965a6149c98c48cda967ec3c04 (patch) | |
| tree | 98fcb050f6d94ae33d1a26a020834d5c1bdf6b33 /src/video_core/shader/glsl_decompiler.cpp | |
| parent | 2df55985b691d659073dce2d857d46bc152b4842 (diff) | |
shader_decode: Implement HSET2
Diffstat (limited to 'src/video_core/shader/glsl_decompiler.cpp')
| -rw-r--r-- | src/video_core/shader/glsl_decompiler.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/shader/glsl_decompiler.cpp b/src/video_core/shader/glsl_decompiler.cpp index 8a2cc3c31..2e9323df7 100644 --- a/src/video_core/shader/glsl_decompiler.cpp +++ b/src/video_core/shader/glsl_decompiler.cpp @@ -1012,6 +1012,11 @@ private: return GenerateUnary(operation, "!", Type::Bool, Type::Bool, false); } + std::string LogicalPick2(Operation operation) { + const std::string pair = VisitOperand(operation, 0, Type::Bool2); + return pair + '[' + VisitOperand(operation, 1, Type::Uint) + ']'; + } + std::string LogicalAll2(Operation operation) { return GenerateUnary(operation, "all", Type::Bool, Type::Bool2); } @@ -1306,6 +1311,7 @@ private: &LogicalOr, &LogicalXor, &LogicalNegate, + &LogicalPick2, &LogicalAll2, &LogicalAny2, |
