FullscreenUI: Change hw mipmap to a toggle button.

This commit is contained in:
lightningterror 2024-05-16 15:56:29 +02:00
parent 2d79b89acc
commit 68eed55490
1 changed files with 2 additions and 9 deletions
pcsx2/ImGui

View File

@ -3520,12 +3520,6 @@ void FullscreenUI::DrawGraphicsSettingsPage(SettingsInterface* bsi, bool show_ad
"7", "7",
"8", "8",
}; };
static constexpr const char* s_mipmapping_options[] = {
FSUI_NSTR("Automatic (Default)"),
FSUI_NSTR("Off"),
FSUI_NSTR("Basic (Generated Mipmaps)"),
FSUI_NSTR("Full (PS2 Mipmaps)"),
};
static constexpr const char* s_bilinear_options[] = { static constexpr const char* s_bilinear_options[] = {
FSUI_NSTR("Nearest"), FSUI_NSTR("Nearest"),
FSUI_NSTR("Bilinear (Forced)"), FSUI_NSTR("Bilinear (Forced)"),
@ -3660,9 +3654,6 @@ void FullscreenUI::DrawGraphicsSettingsPage(SettingsInterface* bsi, bool show_ad
DrawStringListSetting(bsi, FSUI_CSTR("Internal Resolution"), DrawStringListSetting(bsi, FSUI_CSTR("Internal Resolution"),
FSUI_CSTR("Multiplies the render resolution by the specified factor (upscaling)."), "EmuCore/GS", "upscale_multiplier", FSUI_CSTR("Multiplies the render resolution by the specified factor (upscaling)."), "EmuCore/GS", "upscale_multiplier",
"1.000000", s_resolution_options, s_resolution_values, std::size(s_resolution_options), true); "1.000000", s_resolution_options, s_resolution_values, std::size(s_resolution_options), true);
DrawIntListSetting(bsi, FSUI_CSTR("Mipmapping"), FSUI_CSTR("Determines how mipmaps are used when rendering textures."),
"EmuCore/GS", "mipmap_hw", static_cast<int>(HWMipmapLevel::Automatic), s_mipmapping_options, std::size(s_mipmapping_options),
true, -1);
DrawIntListSetting(bsi, FSUI_CSTR("Bilinear Filtering"), DrawIntListSetting(bsi, FSUI_CSTR("Bilinear Filtering"),
FSUI_CSTR("Selects where bilinear filtering is utilized when rendering textures."), "EmuCore/GS", "filter", FSUI_CSTR("Selects where bilinear filtering is utilized when rendering textures."), "EmuCore/GS", "filter",
static_cast<int>(BiFiltering::PS2), s_bilinear_options, std::size(s_bilinear_options), true); static_cast<int>(BiFiltering::PS2), s_bilinear_options, std::size(s_bilinear_options), true);
@ -3682,6 +3673,8 @@ void FullscreenUI::DrawGraphicsSettingsPage(SettingsInterface* bsi, bool show_ad
"Uploads full textures to the GPU on use, rather than only the utilized regions. Can improve performance in some games."), "Uploads full textures to the GPU on use, rather than only the utilized regions. Can improve performance in some games."),
"EmuCore/GS", "texture_preloading", static_cast<int>(TexturePreloadingLevel::Off), s_preloading_options, "EmuCore/GS", "texture_preloading", static_cast<int>(TexturePreloadingLevel::Off), s_preloading_options,
std::size(s_preloading_options), true); std::size(s_preloading_options), true);
DrawToggleSetting(
bsi, FSUI_CSTR("Mipmapping"), FSUI_CSTR("Enables emulation of the GS's texture mipmapping."), "EmuCore/GS", "hw_mipmap", true);
} }
else else
{ {