mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 09:39:13 +00:00
ShaderGen: Pass host config to shader generation functions
Also moves the host config checks to common.
This commit is contained in:
parent
d01b0bf60f
commit
3ea9d86faa
27 changed files with 231 additions and 219 deletions
|
@ -224,14 +224,6 @@ struct VideoConfig final
|
|||
return backend_info.bSupportsGPUTextureDecoding && bEnableGPUTextureDecoding;
|
||||
}
|
||||
bool UseVertexRounding() const { return bVertexRounding && iEFBScale != SCALE_1X; }
|
||||
bool IsStereoEnabled() const;
|
||||
bool IsMSAAEnabled() const;
|
||||
bool IsSSAAEnabled() const;
|
||||
// Host config contains the settings which can influence generated shaders.
|
||||
u32 GetHostConfigBits() const;
|
||||
// Gets the filename of the specified type of cache object (e.g. vertex shader, pipeline).
|
||||
std::string GetDiskCacheFileName(APIType api_type, const char* type, bool include_gameid,
|
||||
bool include_host_config) const;
|
||||
};
|
||||
|
||||
extern VideoConfig g_Config;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue