Exemple #1
0
        internal void ReleaseRayTracingManager()
        {
            m_CurrentRAS.Dispose();

            if (m_RayTracingLightCluster != null)
            {
                m_RayTracingLightCluster.ReleaseResources();
            }
            if (m_RayCountManager != null)
            {
                m_RayCountManager.Release();
            }

            if (m_ReflectionDenoiser != null)
            {
                m_ReflectionDenoiser.Release();
            }
            if (m_TemporalFilter != null)
            {
                m_TemporalFilter.Release();
            }
            if (m_SimpleDenoiser != null)
            {
                m_SimpleDenoiser.Release();
            }
            if (m_DiffuseShadowDenoiser != null)
            {
                m_DiffuseShadowDenoiser.Release();
            }
            if (m_DiffuseDenoiser != null)
            {
                m_DiffuseDenoiser.Release();
            }
        }
Exemple #2
0
 public void ReleaseRayTracingManager()
 {
     m_RayTracingLightCluster.ReleaseResources();
     m_TemporalFilter.Release();
     m_SimpleDenoiser.Release();
     m_DiffuseDenoiser.Release();
     m_RayCountManager.Release();
 }
Exemple #3
0
        public void Release()
        {
            // Destroy all the sub-scenes
            foreach (var subScene in m_SubScenes)
            {
                HDRayTracingSubScene currentSubScene = subScene.Value;
                DestroySubSceneStructure(ref currentSubScene);
            }

            // Clear the sub-scenes list
            m_SubScenes.Clear();

            m_SimpleDenoiser.Release();

            m_RayCountManager.Release();
        }
Exemple #4
0
        internal void ReleaseRayTracingManager()
        {
            RTHandles.Release(m_RayTracingDistanceBuffer);
            RTHandles.Release(m_RayTracingDirectionBuffer);

            RTHandles.Release(m_RayTracingIntermediateBufferR0);
            RTHandles.Release(m_RayTracingIntermediateBufferRG0);
            RTHandles.Release(m_RayTracingIntermediateBufferRGBA0);
            RTHandles.Release(m_RayTracingIntermediateBufferRGBA1);

            m_RayTracingLightCluster.ReleaseResources();
            m_ReflectionDenoiser.Release();
            m_TemporalFilter.Release();
            m_SimpleDenoiser.Release();
            m_DiffuseDenoiser.Release();
            m_RayCountManager.Release();
        }
        internal void ReleaseRayTracingManager()
        {
            if (m_RayTracingDistanceBuffer != null)
            {
                RTHandles.Release(m_RayTracingDistanceBuffer);
            }
            if (m_RayTracingDirectionBuffer != null)
            {
                RTHandles.Release(m_RayTracingDirectionBuffer);
            }

            if (m_RayTracingIntermediateBufferR0 != null)
            {
                RTHandles.Release(m_RayTracingIntermediateBufferR0);
            }
            if (m_RayTracingIntermediateBufferR1 != null)
            {
                RTHandles.Release(m_RayTracingIntermediateBufferR1);
            }
            if (m_RayTracingIntermediateBufferRG0 != null)
            {
                RTHandles.Release(m_RayTracingIntermediateBufferRG0);
            }
            if (m_RayTracingIntermediateBufferRG1 != null)
            {
                RTHandles.Release(m_RayTracingIntermediateBufferRG1);
            }
            if (m_RayTracingIntermediateBufferRGBA0 != null)
            {
                RTHandles.Release(m_RayTracingIntermediateBufferRGBA0);
            }
            if (m_RayTracingIntermediateBufferRGBA1 != null)
            {
                RTHandles.Release(m_RayTracingIntermediateBufferRGBA1);
            }
            if (m_RayTracingIntermediateBufferRGBA2 != null)
            {
                RTHandles.Release(m_RayTracingIntermediateBufferRGBA2);
            }
            if (m_RayTracingIntermediateBufferRGBA3 != null)
            {
                RTHandles.Release(m_RayTracingIntermediateBufferRGBA3);
            }
            if (m_RayTracingIntermediateBufferRGBA4 != null)
            {
                RTHandles.Release(m_RayTracingIntermediateBufferRGBA4);
            }

            if (m_RayTracingLightCluster != null)
            {
                m_RayTracingLightCluster.ReleaseResources();
            }
            if (m_RayCountManager != null)
            {
                m_RayCountManager.Release();
            }

            if (m_ReflectionDenoiser != null)
            {
                m_ReflectionDenoiser.Release();
            }
            if (m_TemporalFilter != null)
            {
                m_TemporalFilter.Release();
            }
            if (m_SimpleDenoiser != null)
            {
                m_SimpleDenoiser.Release();
            }
            if (m_SSGIDenoiser != null)
            {
                m_SSGIDenoiser.Release();
            }
            if (m_DiffuseShadowDenoiser != null)
            {
                m_DiffuseShadowDenoiser.Release();
            }
            if (m_DiffuseDenoiser != null)
            {
                m_DiffuseDenoiser.Release();
            }
        }