GPU: Add adaptive and box downsampling modes

This commit is contained in:
Connor McLaughlin
2020-12-30 16:26:20 +10:00
parent 5236583544
commit 3cb2cd8235
23 changed files with 1180 additions and 69 deletions

View File

@ -489,7 +489,7 @@ void LibretroHostInterface::OnSystemDestroyed()
m_using_hardware_renderer = false;
}
static std::array<retro_core_option_definition, 51> s_option_definitions = {{
static std::array<retro_core_option_definition, 52> s_option_definitions = {{
{"duckstation_Console.Region",
"Console Region",
"Determines which region/hardware to emulate. Auto-Detect will use the region of the disc inserted.",
@ -701,12 +701,6 @@ static std::array<retro_core_option_definition, 51> s_option_definitions = {{
"Very slow, and incompatible with the recompiler.",
{{"true", "Enabled"}, {"false", "Disabled"}},
"false"},
{"duckstation_Display.CropMode",
"Crop Mode",
"Changes how much of the image is cropped. Some games display garbage in the overscan area which is typically "
"hidden.",
{{"None", "None"}, {"Overscan", "Only Overscan Area"}, {"Borders", "All Borders"}},
"Overscan"},
{"duckstation_Display.AspectRatio",
"Aspect Ratio",
"Sets the core-provided aspect ratio.",
@ -724,6 +718,20 @@ static std::array<retro_core_option_definition, 51> s_option_definitions = {{
{"1:1", "1:1"},
{"PAR 1:1", "PAR 1:1"}},
"Auto"},
{"duckstation_Display.CropMode",
"Crop Mode",
"Changes how much of the image is cropped. Some games display garbage in the overscan area which is typically "
"hidden.",
{{"None", "None"}, {"Overscan", "Only Overscan Area"}, {"Borders", "All Borders"}},
"Overscan"},
{"duckstation_GPU.DownsampleMode",
"Downsampling",
"Downsamples the rendered image prior to displaying it. Can improve overall image quality in mixed 2D/3D games, but "
"should be disabled for pure 3D games. Only applies to the hardware renderers.",
{{"Disabled", "Disabled"},
{"Box", "Box (Downsample 3D/Smooth All)"},
{"Adaptive", "Adaptive (Preserve 3D/Smooth 2D)"}},
"Disabled"},
{"duckstation_Main.LoadDevicesFromSaveStates",
"Load Devices From Save States",
"Sets whether the contents of devices and memory cards will be loaded when a save state is loaded.",