Ejemplo n.º 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();
            }
        }
Ejemplo n.º 2
0
        internal void ReleaseRayTracingManager()
        {
            RTHandles.Release(m_RayTracingDistanceBuffer);
            RTHandles.Release(m_RayTracingDirectionBuffer);

            RTHandles.Release(m_RayTracingIntermediateBufferR1);
            RTHandles.Release(m_RayTracingIntermediateBufferR0);
            RTHandles.Release(m_RayTracingIntermediateBufferRG1);
            RTHandles.Release(m_RayTracingIntermediateBufferRG0);
            RTHandles.Release(m_RayTracingIntermediateBufferRGBA0);
            RTHandles.Release(m_RayTracingIntermediateBufferRGBA1);
            RTHandles.Release(m_RayTracingIntermediateBufferRGBA2);
            RTHandles.Release(m_RayTracingIntermediateBufferRGBA3);

            m_RayTracingLightCluster.ReleaseResources();
            m_ReflectionDenoiser.Release();
            m_TemporalFilter.Release();
            m_SimpleDenoiser.Release();
            m_DiffuseDenoiser.Release();
            m_RayCountManager.Release();
            m_DiffuseShadowDenoiser.Release();
        }