diff options
author | ameerj <aj662@drexel.edu> | 2020-11-25 06:33:20 +0100 |
---|---|---|
committer | ameerj <aj662@drexel.edu> | 2020-11-25 06:33:20 +0100 |
commit | e87670ee48c896ba029a11ad590234e00260f875 (patch) | |
tree | 1b0103029d678cf1d0bc20af94feadc10f9fe74d /src/video_core/renderer_vulkan/vk_pipeline_cache.cpp | |
parent | Address PR feedback from Rein (diff) | |
download | yuzu-e87670ee48c896ba029a11ad590234e00260f875.tar yuzu-e87670ee48c896ba029a11ad590234e00260f875.tar.gz yuzu-e87670ee48c896ba029a11ad590234e00260f875.tar.bz2 yuzu-e87670ee48c896ba029a11ad590234e00260f875.tar.lz yuzu-e87670ee48c896ba029a11ad590234e00260f875.tar.xz yuzu-e87670ee48c896ba029a11ad590234e00260f875.tar.zst yuzu-e87670ee48c896ba029a11ad590234e00260f875.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_pipeline_cache.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_pipeline_cache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp index a66a841fb..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" @@ -347,8 +348,7 @@ VKPipelineCache::DecompileShaders(const FixedPipelineState& fixed_state) { // Alpha test specialization.alpha_test_func = FixedPipelineState::UnpackComparisonOp(fixed_state.alpha_test_func.Value()); - // memcpy from u32 to float TODO: C++20 std::bit_cast - std::memcpy(&specialization.alpha_test_ref, &fixed_state.alpha_test_ref, sizeof(float)); + specialization.alpha_test_ref = Common::BitCast<float>(fixed_state.alpha_test_ref); SPIRVProgram program; std::vector<VkDescriptorSetLayoutBinding> bindings; |