forked from ShuriZma/suyu
1
0
Fork 0

Merge pull request #472 from bunnei/greater-equal

gl_shader_decompiler: Implement GetPredicateComparison GreaterEqual.
This commit is contained in:
bunnei 2018-05-27 12:14:30 -04:00 committed by GitHub
commit d809f65827
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -606,10 +606,9 @@ private:
std::string GetPredicateComparison(Tegra::Shader::PredCondition condition) const {
using Tegra::Shader::PredCondition;
static const std::unordered_map<PredCondition, const char*> PredicateComparisonStrings = {
{PredCondition::LessThan, "<"},
{PredCondition::Equal, "=="},
{PredCondition::LessEqual, "<="},
{PredCondition::GreaterThan, ">"},
{PredCondition::LessThan, "<"}, {PredCondition::Equal, "=="},
{PredCondition::LessEqual, "<="}, {PredCondition::GreaterThan, ">"},
{PredCondition::GreaterEqual, ">="},
};
auto comparison = PredicateComparisonStrings.find(condition);