diff options
| author | Stenzek <stenzek@gmail.com> | 2017-06-24 18:18:53 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2017-07-20 17:46:59 +1000 |
| commit | 82c27182a8a15903a0082890e6b188435ec957b4 (patch) | |
| tree | a0198ff99fae929391a1e6818e8aad10a96f52b3 /Source/Core/VideoCommon/VideoConfig.cpp | |
| parent | c207a1072da9ccfda727bbc740cc1a73c763aae1 (diff) | |
ShaderGen: Remove host state from shader uids
Diffstat (limited to 'Source/Core/VideoCommon/VideoConfig.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VideoConfig.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/VideoConfig.cpp b/Source/Core/VideoCommon/VideoConfig.cpp index 7dc68abb72..d53e903cee 100644 --- a/Source/Core/VideoCommon/VideoConfig.cpp +++ b/Source/Core/VideoCommon/VideoConfig.cpp @@ -187,3 +187,19 @@ bool VideoConfig::IsVSync() { return bVSync && !Core::GetIsThrottlerTempDisabled(); } + +bool VideoConfig::IsStereoEnabled() const +{ + return iStereoMode > 0; +} + +bool VideoConfig::IsMSAAEnabled() const +{ + return iMultisamples > 1; +} + +bool VideoConfig::IsSSAAEnabled() const +{ + return iMultisamples > 1 && bSSAA && backend_info.bSupportsSSAA; +} + |
