Fix crash when closing handles to asset file while any asset streaming task is active for asset from that file

This commit is contained in:
Wojciech Figat
2022-07-18 13:02:34 +02:00
parent b6652a61c6
commit 3dbff3cab7
14 changed files with 119 additions and 11 deletions

View File

@@ -101,6 +101,11 @@ public:
/// <returns>Async task or tasks that update resource residency level. Must be preceded with UpdateAllocation call.</returns>
virtual Task* CreateStreamingTask(int32 residency) = 0;
/// <summary>
/// Cancels any streaming task (or tasks sequence) started for this resource.
/// </summary>
virtual void CancelStreamingTasks() = 0;
public:
struct StreamingCache