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

                    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);
        }
Beispiel #2
0
        public void Dispose()
        {
            dev.WaitIdle();

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

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

            dev.Dispose();
            instance.Dispose();
        }
Beispiel #3
0
        public void Dispose()
        {
            dev.WaitIdle();

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

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

            dev.Dispose();

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