Beispiel #1
0
        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);
        }
Beispiel #2
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (!isDisposed)
                {
                    dev.WaitIdle();
                    frameBuffers?.Dispose();
                    pbrPipeline.Dispose();
                }
            }

            base.Dispose(disposing);
        }