summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2020-11-25 22:48:34 +0100
committerGitHub <noreply@github.com>2020-11-25 22:48:34 +0100
commitb834c21894ca905cacce2bda04cf24e81175f434 (patch)
treed2c882bbf48e05ee70fa55349887bd003664f176 /src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
parentMerge pull request #4959 from Morph1984/emulated-controller-styleset (diff)
parentcleanup unneeded comments and newlines (diff)
downloadyuzu-b834c21894ca905cacce2bda04cf24e81175f434.tar
yuzu-b834c21894ca905cacce2bda04cf24e81175f434.tar.gz
yuzu-b834c21894ca905cacce2bda04cf24e81175f434.tar.bz2
yuzu-b834c21894ca905cacce2bda04cf24e81175f434.tar.lz
yuzu-b834c21894ca905cacce2bda04cf24e81175f434.tar.xz
yuzu-b834c21894ca905cacce2bda04cf24e81175f434.tar.zst
yuzu-b834c21894ca905cacce2bda04cf24e81175f434.zip
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_pipeline_cache.cpp')
-rw-r--r--src/video_core/renderer_vulkan/vk_pipeline_cache.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
index dedc9c466..f9efe526d 100644
--- a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
+++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
@@ -7,6 +7,7 @@
#include <memory>
#include <vector>
+#include "common/bit_cast.h"
#include "common/microprofile.h"
#include "core/core.h"
#include "core/memory.h"
@@ -344,6 +345,11 @@ VKPipelineCache::DecompileShaders(const FixedPipelineState& fixed_state) {
}
specialization.ndc_minus_one_to_one = fixed_state.ndc_minus_one_to_one;
+ // Alpha test
+ specialization.alpha_test_func =
+ FixedPipelineState::UnpackComparisonOp(fixed_state.alpha_test_func.Value());
+ specialization.alpha_test_ref = Common::BitCast<float>(fixed_state.alpha_test_ref);
+
SPIRVProgram program;
std::vector<VkDescriptorSetLayoutBinding> bindings;