mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-12-12 10:37:02 +00:00
GX2: Implement GX2SetTVGamma and GX2SetDRCGamma (#1682)
This commit is contained in:
parent
4fa0df6dcf
commit
5390f9338c
22 changed files with 239 additions and 46 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue