Esempio n. 1
0
        void OnDisable()
        {
            if (!RuntimeUtilities.scriptableRenderPipelineActive)
            {
                m_Camera.RemoveCommandBuffer(CameraEvent.BeforeImageEffectsOpaque, m_LegacyCmdBufferOpaque);
                m_Camera.RemoveCommandBuffer(CameraEvent.BeforeImageEffects, m_LegacyCmdBuffer);
            }

            temporalAntialiasing.Release();
            m_LogHistogram.Release();

            foreach (var bundle in m_Bundles.Values)
            {
                bundle.Release();
            }

            m_Bundles.Clear();
            m_PropertySheetFactory.Release();
            debugView.Release();

            // Might be an issue if several layers are blending in the same frame...
            TextureLerper.instance.Clear();

            haveBundlesBeenInited = false;
        }
Esempio n. 2
0
        void OnDisable()
        {
            if (!RuntimeUtilities.scriptableRenderPipelineActive)
            {
                m_Camera.RemoveCommandBuffer(CameraEvent.BeforeImageEffectsOpaque, m_LegacyCmdBufferOpaque);
                m_Camera.RemoveCommandBuffer(CameraEvent.BeforeImageEffects, m_LegacyCmdBuffer);
            }

            m_BlueNoise.Release();
            temporalAntialiasing.Release();

            foreach (var bundles in m_SortedBundles.Values)
            {
                bundles.Clear();
            }

            foreach (var bundle in m_Bundles.Values)
            {
                bundle.Release();
            }

            m_Bundles.Clear();
            m_SortedBundles.Clear();
            m_PropertySheetFactory.Release();
        }