fffe4a4788
Adds optional native HDR (scRGB) presentation with an SDR->HDR highlight tone map, exposed as real graphics settings: - 'Enable HDR' checkbox, off by default. Only engages when the display/OS advertises the scRGB (extended sRGB linear) HDR colorspace, so SDR output is left completely unchanged. - Paper white, peak brightness and highlight intensity sliders, read by the HDR color-blit and FSR sharpening shaders through uniforms. - Blacks are preserved by construction (highlight-only expansion). - Defaults calibrated on a 4K OLED: 200 nits paper white, 1100 nits peak, intensity 80. Vulkan only. Co-Authored-By: The Roofer Dev <therooferdev@gmail.com>
21 lines
623 B
C#
21 lines
623 B
C#
using Ryujinx.Common.Configuration;
|
|
using System;
|
|
|
|
namespace Ryujinx.Graphics.GAL
|
|
{
|
|
public interface IWindow
|
|
{
|
|
void Present(ITexture texture, ImageCrop crop, Action swapBuffersCallback);
|
|
|
|
void SetSize(int width, int height);
|
|
|
|
void ChangeVSyncMode(VSyncMode vSyncMode);
|
|
|
|
void SetAntiAliasing(AntiAliasing antialiasing);
|
|
void SetScalingFilter(ScalingFilter type);
|
|
void SetScalingFilterLevel(float level);
|
|
void SetColorSpacePassthrough(bool colorSpacePassThroughEnabled);
|
|
void SetHdrMode(bool enabled, float paperWhite, float peak, float curve);
|
|
}
|
|
}
|