示例#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();
                    }

                    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);
        }
示例#2
0
文件: main.cs 项目: jpbruyere/vke.net
        public void Dispose()
        {
            dev.WaitIdle();

            plCompute.Dispose();
            dsLayout.Dispose();
            dsPool.Dispose();

            inBuff.Dispose();
            outBuff.Dispose();

            dev.Dispose();
            instance.Dispose();
        }
示例#3
0
文件: test.cs 项目: Svengali/vk.net
        public void Dispose()
        {
            dev.WaitIdle();

            plCompute.Dispose();
            dsLayoutCompute.Dispose();
            dsPool.Dispose();

            inBuff.Dispose();
            outBuff.Dispose();

            dev.Dispose();

#if DEBUG
            dbgReport.Dispose();
#endif
            instance.Dispose();
        }
示例#4
0
        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);
        }