diff options
| author | Markus Wick <degasus@users.noreply.github.com> | 2016-10-05 12:20:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-05 12:20:58 +0200 |
| commit | ef1bfc26b2f109e650b40f7b88275832366cc12b (patch) | |
| tree | 3ac89bde07bf8d431e0f9124f657ad6aa7e55059 /Source/Core/VideoBackends/Vulkan/ObjectCache.cpp | |
| parent | 22d925992663f27d200dd9dfcf3085884b74f08d (diff) | |
| parent | 6d2827ff6b781e2d7cbb1b242e23a635ab708050 (diff) | |
Merge pull request #4291 from degasus/shader_gen
PixelShaderGen: Fix UID issues.
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/ObjectCache.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Vulkan/ObjectCache.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/ObjectCache.cpp b/Source/Core/VideoBackends/Vulkan/ObjectCache.cpp index cf90fc2f60..d1e874cac6 100644 --- a/Source/Core/VideoBackends/Vulkan/ObjectCache.cpp +++ b/Source/Core/VideoBackends/Vulkan/ObjectCache.cpp @@ -525,8 +525,7 @@ VkShaderModule ObjectCache::GetGeometryShaderForUid(const GeometryShaderUid& uid return module; } -VkShaderModule ObjectCache::GetPixelShaderForUid(const PixelShaderUid& uid, - DSTALPHA_MODE dstalpha_mode) +VkShaderModule ObjectCache::GetPixelShaderForUid(const PixelShaderUid& uid) { auto it = m_ps_cache.shader_map.find(uid); if (it != m_ps_cache.shader_map.end()) @@ -535,8 +534,7 @@ VkShaderModule ObjectCache::GetPixelShaderForUid(const PixelShaderUid& uid, // Not in the cache, so compile the shader. ShaderCompiler::SPIRVCodeVector spv; VkShaderModule module = VK_NULL_HANDLE; - ShaderCode source_code = - GeneratePixelShaderCode(dstalpha_mode, APIType::Vulkan, uid.GetUidData()); + ShaderCode source_code = GeneratePixelShaderCode(APIType::Vulkan, uid.GetUidData()); if (ShaderCompiler::CompileFragmentShader(&spv, source_code.GetBuffer().c_str(), source_code.GetBuffer().length())) { |
