protected override void Dispose(bool disposing) { if (disposing) { if (!isDisposed) { dev.WaitIdle(); for (int i = 0; i < swapChain.ImageCount; ++i) { frameBuffers[i]?.Dispose(); } grPipeline.Dispose(); plCompute.Dispose(); plNormalize.Dispose(); dslCompute.Dispose(); dslImage.Dispose(); dsPool.Dispose(); inBuff.Dispose(); outBuff.Dispose(); stagingDataBuff.Dispose(); imgResult.Dispose(); dbgReport?.Dispose(); } } base.Dispose(disposing); }
public void Dispose() { dev.WaitIdle(); plCompute.Dispose(); dsLayout.Dispose(); dsPool.Dispose(); inBuff.Dispose(); outBuff.Dispose(); dev.Dispose(); instance.Dispose(); }
public void Dispose() { dev.WaitIdle(); plCompute.Dispose(); dsLayoutCompute.Dispose(); dsPool.Dispose(); inBuff.Dispose(); outBuff.Dispose(); dev.Dispose(); #if DEBUG dbgReport.Dispose(); #endif instance.Dispose(); }
protected override void Dispose(bool disposing) { if (disposing) { if (!isDisposed) { dev.WaitIdle(); for (int i = 0; i < swapChain.ImageCount; ++i) { frameBuffers[i]?.Dispose(); } grPipeline.Dispose(); trianglesPipeline.Dispose(); plInit.Dispose(); plCompute.Dispose(); plNormalize.Dispose(); dslCompute.Dispose(); dslImage.Dispose(); dsPool.Dispose(); inBuff.Dispose(); outBuff.Dispose(); staggingVBO.Dispose(); vbo.Dispose(); ibo.Dispose(); imgResult.Dispose(); #if DEBUG dbgReport.Dispose(); #endif } } base.Dispose(disposing); }