Add Disposed event to compute shader panels
このコミットが含まれているのは:
1 親
05eff37ff0
コミット
33983506a9
4ファイル変更
+33
検索条件に一致するファイルはありません
@@ -223,6 +223,11 @@ internal sealed unsafe partial class SwapChainManager<TOwner> : NativeObject
|
||||
/// </summary>
|
||||
public event TypedEventHandler<TOwner, Exception>? RenderingFailed;
|
||||
|
||||
/// <summary>
|
||||
/// Raised whenever the parent control is disposed and all underlying resources are released.
|
||||
/// </summary>
|
||||
public event TypedEventHandler<TOwner, EventArgs>? Disposed;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SwapChainManager{TOwner}"/> type.
|
||||
/// </summary>
|
||||
@@ -549,6 +554,8 @@ internal sealed unsafe partial class SwapChainManager<TOwner> : NativeObject
|
||||
@this.d3D12Resource0.Dispose();
|
||||
@this.d3D12Resource1.Dispose();
|
||||
@this.texture?.Dispose();
|
||||
|
||||
@this.OnDisposed();
|
||||
}, this);
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする