Serialize primitive_assembly
This commit is contained in:
parent
c284192a87
commit
050c3bdee5
4 changed files with 20 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue