summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Vulkan/ObjectCache.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2016-09-28 22:31:39 +0200
committerdegasus <wickmarkus@web.de>2016-10-04 10:13:46 +0200
commit829fc8f0adeaf82d78b695208b24015456d8e52b (patch)
treec243a156177fafa9ec468e7d263de655146f95fa /Source/Core/VideoBackends/Vulkan/ObjectCache.cpp
parent7b29b3c5711b5bdd41dd65f315f7bcb850637957 (diff)
PixelShaderGen: Drop dstAlphaMode constant in shader generation.
It is already stored within the UID.
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/ObjectCache.cpp')
-rw-r--r--Source/Core/VideoBackends/Vulkan/ObjectCache.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/ObjectCache.cpp b/Source/Core/VideoBackends/Vulkan/ObjectCache.cpp
index 6932830bfb..ab2cc8c56a 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()))
{