コード例 #1
0
 /// <inheritdoc />
 protected override void Dispose(bool isDisposing)
 {
     if (isDisposing)
     {
         _waitForIdleFence.Dispose();
         _waitForIdleFence = null !;
     }
     _ = _d3d12CommandQueue.Reset();
 }
コード例 #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);
    }
コード例 #3
0
 /// <inheritdoc />
 protected override void Dispose(bool isDisposing)
 {
     _ = _d3d12RtvResource.Reset();
 }