Set CachedBlobSizeInBytes to 0 on reading

This commit is contained in:
baldurk
2018-10-05 11:34:49 +01:00
parent 8004bef8d0
commit b6894185a9
@@ -570,6 +570,9 @@ void DoSerialise(SerialiserType &ser, D3D12_CACHED_PIPELINE_STATE &el)
SERIALISE_MEMBER_ARRAY_EMPTY(pCachedBlob);
uint64_t CachedBlobSizeInBytes = 0;
ser.Serialise("CachedBlobSizeInBytes", CachedBlobSizeInBytes);
if(ser.IsReading())
el.CachedBlobSizeInBytes = CachedBlobSizeInBytes;
}
template <class SerialiserType>