diff options
| author | Jonathan Hamilton <jtrhamilton@gmail.com> | 2017-10-25 22:44:39 -0700 |
|---|---|---|
| committer | Jonathan Hamilton <jtrhamilton@gmail.com> | 2018-01-05 09:56:46 -0800 |
| commit | 29a9ed043bd0946497edf7c4d392ce46041b9817 (patch) | |
| tree | 3104979b668377da1499a3b4afc7ac29c557e3ce /Source/Core/VideoCommon/ShaderGenCommon.cpp | |
| parent | 11976526d11f0475a3af126758260cdd69dd2a35 (diff) | |
Implement dual-source blending in shader
For some GLES drivers that don't support dual-source blending, but do
support GL_EXT_shader_framebuffer_fetch, this might be useful.
Diffstat (limited to 'Source/Core/VideoCommon/ShaderGenCommon.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/ShaderGenCommon.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/ShaderGenCommon.cpp b/Source/Core/VideoCommon/ShaderGenCommon.cpp index c6b29c8088..8cc7e54f5c 100644 --- a/Source/Core/VideoCommon/ShaderGenCommon.cpp +++ b/Source/Core/VideoCommon/ShaderGenCommon.cpp @@ -32,6 +32,7 @@ ShaderHostConfig ShaderHostConfig::GetCurrent() bits.backend_bitfield = g_ActiveConfig.backend_info.bSupportsBitfield; bits.backend_dynamic_sampler_indexing = g_ActiveConfig.backend_info.bSupportsDynamicSamplerIndexing; + bits.backend_shader_framebuffer_fetch = g_ActiveConfig.backend_info.bSupportsFramebufferFetch; return bits; } @@ -68,9 +69,9 @@ std::string GetDiskShaderCacheFileName(APIType api_type, const char* type, bool if (include_host_config) { - // We're using 20 bits, so 5 hex characters. + // We're using 21 bits, so 6 hex characters. ShaderHostConfig host_config = ShaderHostConfig::GetCurrent(); - filename += StringFromFormat("-%05X", host_config.bits); + filename += StringFromFormat("-%06X", host_config.bits); } filename += ".cache"; |
