/// <inheritdoc />
 protected override void Dispose(bool isDisposing)
 {
     if (isDisposing)
     {
         _waitForIdleFence.Dispose();
         _waitForIdleFence = null !;
     }
     _ = _d3d12CommandQueue.Reset();
 }
Esempio n. 2
0
    /// <inheritdoc />
    protected override void Dispose(bool isDisposing)
    {
        if (isDisposing)
        {
            var fence = Fence;
            fence.Wait();
            fence.Reset();

            fence.Dispose();
            _fence = null !;
        }

        _ = _d3d12GraphicsCommandList.Reset();
        _ = _d3d12CommandAllocator.Reset();

        _ = CommandQueue.RemoveContext(this);
    }
 /// <inheritdoc />
 protected override void Dispose(bool isDisposing)
 {
     _ = _d3d12RtvResource.Reset();
 }