2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

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

View file

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