Fixed a crash when disposing faulted resources
このコミットが含まれているのは:
1 親
740420ddcd
コミット
65812a422b
6ファイル変更
+26
-13
検索条件に一致するファイルはありません
@@ -95,6 +95,7 @@ namespace ComputeSharp.Resources
|
||||
/// Gets the height of the current texture.
|
||||
/// </summary>
|
||||
public int Height => (int)this.d3D12PlacedSubresourceFootprint.Footprint.Height;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the depth of the current texture.
|
||||
/// </summary>
|
||||
@@ -128,7 +129,10 @@ namespace ComputeSharp.Resources
|
||||
this.d3D12Resource.Dispose();
|
||||
this.allocation.Dispose();
|
||||
|
||||
GraphicsDevice.UnregisterAllocatedResource();
|
||||
if (GraphicsDevice is GraphicsDevice device)
|
||||
{
|
||||
device.UnregisterAllocatedResource();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする