mirror of
https://github.com/hch12907/orbum.git
synced 2024-06-02 19:38:16 -04:00
32 lines
638 B
C++
32 lines
638 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));
|
|
}
|
|
}; |