Fixed cancellation of Gpu.Default.Dispose

このコミットが含まれているのは:
Sergio Pedri committed 2020-12-08 01:11:47 +01:00
1 親 c2345bef99
コミット d131707cd1
10ファイル変更
+51 -17

検索条件に一致するファイルはありません

+7 -2
ファイルの表示
@@ -210,9 +210,12 @@ namespace ComputeSharp.Graphics
}
/// <inheritdoc/>
protected override void OnDispose()
protected override bool OnDispose()
{
if (DeviceHelper.GetDefaultDeviceLuid() == Luid) return;
if (DeviceHelper.GetDefaultDeviceLuid() == Luid)
{
return false;
}
DeviceHelper.NotifyDisposedDevice(this);
@@ -224,6 +227,8 @@ namespace ComputeSharp.Graphics
this.computeCommandAllocatorPool.Dispose();
this.copyCommandAllocatorPool.Dispose();
this.shaderResourceViewDescriptorAllocator.Dispose();
return true;
}
/// <inheritdoc/>