diff options
author | Hexagon12 <Hexagon12@users.noreply.github.com> | 2019-05-19 16:02:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-19 16:02:17 +0200 |
commit | 3bd5f0124016ab316053f78f28260404d7b4ec7c (patch) | |
tree | d10db44d5d1a7910d6d55b679427d15d311ab140 | |
parent | Merge pull request #2470 from lioncash/ranged-for (diff) | |
parent | video_core/engines/maxwell_3d: Add is_trivially_copyable_v check for Regs (diff) | |
download | yuzu-3bd5f0124016ab316053f78f28260404d7b4ec7c.tar yuzu-3bd5f0124016ab316053f78f28260404d7b4ec7c.tar.gz yuzu-3bd5f0124016ab316053f78f28260404d7b4ec7c.tar.bz2 yuzu-3bd5f0124016ab316053f78f28260404d7b4ec7c.tar.lz yuzu-3bd5f0124016ab316053f78f28260404d7b4ec7c.tar.xz yuzu-3bd5f0124016ab316053f78f28260404d7b4ec7c.tar.zst yuzu-3bd5f0124016ab316053f78f28260404d7b4ec7c.zip |
-rw-r--r-- | src/video_core/engines/maxwell_3d.h | 2 |
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 { |