Refactor native Stream serialization to new API

This commit is contained in:
Wojciech Figat
2022-10-20 17:28:12 +02:00
parent e5866a3ff4
commit 32e052a87b
34 changed files with 371 additions and 370 deletions

View File

@@ -30,7 +30,7 @@ public:
if (context.AllocateChunk(0))
return CreateAssetResult::CannotAllocateChunk;
MemoryWriteStream stream(256);
stream.Write(&Guid::Empty);
stream.Write(Guid::Empty);
MaterialParams::Save(&stream, nullptr);
context.Data.Header.Chunks[0]->Data.Copy(stream.GetHandle(), stream.GetPosition());