summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-05-14 14:41:51 +0200
committerLioncash <mathew1800@gmail.com>2019-05-14 14:47:56 +0200
commitc212fc9b2c6a389dfe7ea59bc66c745397c349fd (patch)
tree57334dcfdfb201ee4e982010ce5e1144b19d8b62
parentMerge pull request #2462 from lioncash/video-mm (diff)
downloadyuzu-c212fc9b2c6a389dfe7ea59bc66c745397c349fd.tar
yuzu-c212fc9b2c6a389dfe7ea59bc66c745397c349fd.tar.gz
yuzu-c212fc9b2c6a389dfe7ea59bc66c745397c349fd.tar.bz2
yuzu-c212fc9b2c6a389dfe7ea59bc66c745397c349fd.tar.lz
yuzu-c212fc9b2c6a389dfe7ea59bc66c745397c349fd.tar.xz
yuzu-c212fc9b2c6a389dfe7ea59bc66c745397c349fd.tar.zst
yuzu-c212fc9b2c6a389dfe7ea59bc66c745397c349fd.zip
-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 @@
#include <array>
#include <bitset>
+#include <type_traits>
#include <unordered_map>
#include <vector>
@@ -1107,6 +1108,7 @@ public:
} regs{};
static_assert(sizeof(Regs) == Regs::NUM_REGS * sizeof(u32), "Maxwell3D Regs has wrong size");
+ static_assert(std::is_trivially_copyable_v<Regs>, "Maxwell3D Regs must be trivially copyable");
struct State {
struct ConstBufferInfo {