summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp
diff options
context:
space:
mode:
authorameerj <aj662@drexel.edu>2020-11-25 06:33:20 +0100
committerameerj <aj662@drexel.edu>2020-11-25 06:33:20 +0100
commite87670ee48c896ba029a11ad590234e00260f875 (patch)
tree1b0103029d678cf1d0bc20af94feadc10f9fe74d /src/video_core/renderer_vulkan/fixed_pipeline_state.cpp
parentAddress PR feedback from Rein (diff)
downloadyuzu-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 '')
-rw-r--r--src/video_core/renderer_vulkan/fixed_pipeline_state.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp b/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp
index 192828300..fffae528e 100644
--- a/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp
+++ b/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp
@@ -8,6 +8,7 @@
#include <boost/functional/hash.hpp>
+#include "common/bit_cast.h"
#include "common/cityhash.h"
#include "common/common_types.h"
#include "video_core/renderer_vulkan/fixed_pipeline_state.h"
@@ -64,9 +65,9 @@ void FixedPipelineState::Fill(const Maxwell& regs, bool has_extended_dynamic_sta
const auto test_func =
regs.alpha_test_enabled == 1 ? regs.alpha_test_func : Maxwell::ComparisonOp::Always;
alpha_test_func.Assign(PackComparisonOp(test_func));
- std::memcpy(&alpha_test_ref, &regs.alpha_test_ref, sizeof(u32)); // TODO: C++20 std::bit_cast
+ alpha_test_ref = Common::BitCast<u32>(regs.alpha_test_ref);
- std::memcpy(&point_size, &regs.point_size, sizeof(point_size)); // TODO: C++20 std::bit_cast
+ point_size = Common::BitCast<u32>(regs.point_size);
for (std::size_t index = 0; index < Maxwell::NumVertexArrays; ++index) {
binding_divisors[index] =