GX2: Implement GX2SetTVGamma and GX2SetDRCGamma (#1682)

This commit is contained in:
goeiecool9999 2025-11-14 13:51:58 +01:00 committed by GitHub
parent 4fa0df6dcf
commit 5390f9338c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 239 additions and 46 deletions

View file

@ -206,8 +206,12 @@ namespace GX2
void GX2SetTVGamma(float gamma)
{
if (abs(gamma - 1.0f) > 0.01f)
cemuLog_logDebug(LogType::Force, "TV gamma set to {} which is not supported", gamma);
LatteGPUState.tvGamma = (1.0f - gamma);
}
void GX2SetDRCGamma(float gamma)
{
LatteGPUState.drcGamma = (1.0f - gamma);
}
bool GX2GetLastFrame(uint32 deviceId, GX2Texture* textureOut)
@ -307,6 +311,7 @@ namespace GX2
cafeExportRegister("gx2", GX2SetTVBuffer, LogType::GX2);
cafeExportRegister("gx2", GX2SetTVGamma, LogType::GX2);
cafeExportRegister("gx2", GX2SetDRCGamma, LogType::GX2);
cafeExportRegister("gx2", GX2GetLastFrame, LogType::GX2);
cafeExportRegister("gx2", GX2GetLastFrameGammaA, LogType::GX2);