mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-23 15:22:45 +01:00
glsl_decompiler: Remove HNegate inlining
This commit is contained in:
parent
027f443e69
commit
d6f76307fe
1 changed files with 0 additions and 10 deletions
|
@ -915,16 +915,6 @@ private:
|
||||||
|
|
||||||
std::string HNegate(Operation operation) {
|
std::string HNegate(Operation operation) {
|
||||||
const auto GetNegate = [&](std::size_t index) -> std::string {
|
const auto GetNegate = [&](std::size_t index) -> std::string {
|
||||||
if (const auto pred = std::get_if<PredicateNode>(operation[index])) {
|
|
||||||
if (!pred->IsNegated()) {
|
|
||||||
switch (pred->GetIndex()) {
|
|
||||||
case Tegra::Shader::Pred::UnusedIndex:
|
|
||||||
return "-1";
|
|
||||||
case Tegra::Shader::Pred::NeverExecute:
|
|
||||||
return "1";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return VisitOperand(operation, index, Type::Bool) + " ? -1 : 1";
|
return VisitOperand(operation, index, Type::Bool) + " ? -1 : 1";
|
||||||
};
|
};
|
||||||
const std::string value = '(' + VisitOperand(operation, 0, Type::HalfFloat) + " * vec2(" +
|
const std::string value = '(' + VisitOperand(operation, 0, Type::HalfFloat) + " * vec2(" +
|
||||||
|
|
Loading…
Reference in a new issue