VERY experimental Nintendo Switch 2 emulator
C++
video_core/engines/maxwell_3d: Add is_trivially_copyable_v check for Regs
Lioncashb66f9188cb8e
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.hindex 4883b582a3..48e4fec33d 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 {