mirror of
https://github.com/hch12907/orbum.git
synced 2024-05-20 05:00:48 -04:00
33 lines
647 B
C++
33 lines
647 B
C++
#pragma once
|
|
|
|
#include <cereal/cereal.hpp>
|
|
|
|
#include "Common/Constants.hpp"
|
|
#include "Resources/Ee/Vpu/Vu/VuRegisters.hpp"
|
|
#include "Resources/Ee/Vpu/Vu/VuUnits.hpp"
|
|
|
|
/// RVu declares the collective VU structure.
|
|
class RVu
|
|
{
|
|
public:
|
|
RVu();
|
|
|
|
/// VU structure.
|
|
VuUnit_Vu0 unit_0;
|
|
VuUnit_Vu1 unit_1;
|
|
VuUnit_Base* units[Constants::EE::VPU::VU::NUMBER_VU_CORES];
|
|
|
|
/// Shared VU registers.
|
|
VuRegister_Fbrst fbrst;
|
|
|
|
public:
|
|
template<class Archive>
|
|
void serialize(Archive & archive)
|
|
{
|
|
archive(
|
|
CEREAL_NVP(unit_0),
|
|
CEREAL_NVP(unit_1),
|
|
CEREAL_NVP(fbrst)
|
|
);
|
|
}
|
|
}; |