VideoCommon: Add configuration to prefer VS for line/point expansion

This commit is contained in:
TellowKrinkle
2022-07-24 03:51:22 -05:00
parent 1eeba6dcca
commit 0a42c534c3
6 changed files with 28 additions and 2 deletions

View File

@ -106,6 +106,7 @@ struct VideoConfig final
bool bInternalResolutionFrameDumps = false;
bool bBorderlessFullscreen = false;
bool bEnableGPUTextureDecoding = false;
bool bPreferVSForLinePointExpansion = false;
int iBitrateKbps = 0;
bool bGraphicMods = false;
std::optional<GraphicsModGroupConfig> graphics_mod_config;
@ -230,7 +231,9 @@ struct VideoConfig final
{
if (!backend_info.bSupportsVSLinePointExpand)
return false;
return !backend_info.bSupportsGeometryShaders;
if (!backend_info.bSupportsGeometryShaders)
return true;
return bPreferVSForLinePointExpansion;
}
bool MultisamplingEnabled() const { return iMultisamples > 1; }
bool ExclusiveFullscreenEnabled() const