Fix D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS serialisation

This commit is contained in:
baldurk
2024-05-16 10:50:01 +01:00
parent db553fc6a6
commit 0124a3d661
+3 -1
View File
@@ -1920,7 +1920,9 @@ void DoSerialise(SerialiserType &ser, D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCT
}
}
SERIALISE_ELEMENT_ARRAY(tempDescs, el.NumDescs).Named("ppGeometryDescs");
// not using SERIALISE_ELEMENT_ARRAY so we can deliberately avoid allocation and so that the
// array isn't immediately freed
ser.Serialise("ppGeometryDescs"_lit, tempDescs, el.NumDescs, SerialiserFlags::NoFlags);
if(ser.IsReading())
{