Serialize primitive_assembly

This commit is contained in:
Hamish Milne 2019-12-22 16:06:26 +00:00 committed by zhupengfei
parent c284192a87
commit 050c3bdee5
4 changed files with 20 additions and 2 deletions

View file

@ -6,6 +6,7 @@
#include <functional>
#include "video_core/regs_pipeline.h"
namespace boost::serialization { class access; }
namespace Pica {
@ -62,6 +63,17 @@ private:
VertexType buffer[2];
bool strip_ready = false;
bool winding = false;
template <class Archive>
void serialize(Archive& ar, const unsigned int version)
{
ar & topology;
ar & buffer_index;
ar & buffer;
ar & strip_ready;
ar & winding;
}
friend class boost::serialization::access;
};
} // namespace Pica