GLES: Fix Set logic op

This commit is contained in:
wheremyfoodat 2024-10-14 00:42:35 +03:00 committed by GitHub
parent fa9ce5fc70
commit afaf18f124
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -715,7 +715,7 @@ void FragmentGenerator::compileLogicOps(std::string& shader, const PICA::Fragmen
case PICA::LogicOpMode::Copy: shader += "combinerOutput"; break;
case PICA::LogicOpMode::Nop: shader += "fb_color"; break;
case PICA::LogicOpMode::Clear: shader += "vec4(0.0)"; break;
case PICA::LogicOpMode::Set: shader += "vec4(uintBitsToFloat(0xFFFFFFFFu))"; break;
case PICA::LogicOpMode::Set: shader += "vec4(1.0)"; break;
case PICA::LogicOpMode::InvertedCopy: shader += "vec4(uvec4(combinerOutput * 255.0) ^ uvec4(0xFFu)) * (1.0 / 255.0)"; break;
default:
@ -725,4 +725,4 @@ void FragmentGenerator::compileLogicOps(std::string& shader, const PICA::Fragmen
}
shader += ";\n}"; // End of main function
}
}