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

@ -85,6 +85,7 @@ void VideoConfig::Refresh()
iBitrateKbps = Config::Get(Config::GFX_BITRATE_KBPS);
bInternalResolutionFrameDumps = Config::Get(Config::GFX_INTERNAL_RESOLUTION_FRAME_DUMPS);
bEnableGPUTextureDecoding = Config::Get(Config::GFX_ENABLE_GPU_TEXTURE_DECODING);
bPreferVSForLinePointExpansion = Config::Get(Config::GFX_PREFER_VS_FOR_LINE_POINT_EXPANSION);
bEnablePixelLighting = Config::Get(Config::GFX_ENABLE_PIXEL_LIGHTING);
bFastDepthCalc = Config::Get(Config::GFX_FAST_DEPTH_CALC);
iMultisamples = Config::Get(Config::GFX_MSAA);

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