summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Hexagon122019-05-19 15:02:17 +0100
committerGravatar GitHub2019-05-19 15:02:17 +0100
commit3bd5f0124016ab316053f78f28260404d7b4ec7c (patch)
treed10db44d5d1a7910d6d55b679427d15d311ab140
parentMerge pull request #2470 from lioncash/ranged-for (diff)
parentvideo_core/engines/maxwell_3d: Add is_trivially_copyable_v check for Regs (diff)
downloadyuzu-3bd5f0124016ab316053f78f28260404d7b4ec7c.tar.gz
yuzu-3bd5f0124016ab316053f78f28260404d7b4ec7c.tar.xz
yuzu-3bd5f0124016ab316053f78f28260404d7b4ec7c.zip
Merge pull request #2469 from lioncash/copyable
video_core/engines/maxwell_3d: Add is_trivially_copyable_v check for Regs
-rw-r--r--src/video_core/engines/maxwell_3d.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h
index 4883b582a..48e4fec33 100644
--- a/src/video_core/engines/maxwell_3d.h
+++ b/src/video_core/engines/maxwell_3d.h
@@ -6,6 +6,7 @@
6 6
7#include <array> 7#include <array>
8#include <bitset> 8#include <bitset>
9#include <type_traits>
9#include <unordered_map> 10#include <unordered_map>
10#include <vector> 11#include <vector>
11 12
@@ -1107,6 +1108,7 @@ public:
1107 } regs{}; 1108 } regs{};
1108 1109
1109 static_assert(sizeof(Regs) == Regs::NUM_REGS * sizeof(u32), "Maxwell3D Regs has wrong size"); 1110 static_assert(sizeof(Regs) == Regs::NUM_REGS * sizeof(u32), "Maxwell3D Regs has wrong size");
1111 static_assert(std::is_trivially_copyable_v<Regs>, "Maxwell3D Regs must be trivially copyable");
1110 1112
1111 struct State { 1113 struct State {
1112 struct ConstBufferInfo { 1114 struct ConstBufferInfo {