public override void Begin() { DeviceCommandList?.Dispose(); DeviceCommandList = null; ClearState(); _begun = true; }
public void Reset() { if (DeviceCommandList != null) { DeviceCommandList.Dispose(); DeviceCommandList = null; } else if (_begun) { _context.ClearState(); SharpDX.Direct3D11.CommandList cl = _context.FinishCommandList(false); cl.Dispose(); } ResetManagedState(); }