protected override void Dispose(bool disposing) { if (disposing) { if (!isDisposed) { dev.WaitIdle(); for (int i = 0; i < swapChain.ImageCount; ++i) { frameBuffers[i]?.Dispose(); } pbrPipeline.Dispose(); uiPipeline.Dispose(); uiImage?.Dispose(); vkvgSurf?.Dispose(); vkvgDev.Dispose(); #if PIPELINE_STATS timestampQPool?.Dispose(); statPool?.Dispose(); #endif } } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (disposing) { if (!isDisposed) { dev.WaitIdle(); frameBuffers?.Dispose(); pbrPipeline.Dispose(); } } base.Dispose(disposing); }