private void ShowShaderErrors(RayTracingShader s)
        {
            int n = ShaderUtil.GetRayTracingShaderMessageCount(s);

            if (n < 1)
            {
                return;
            }
            ShaderInspector.ShaderErrorListUI(s, ShaderUtil.GetRayTracingShaderMessages(s), ref m_ScrollPosition);
        }
Example #2
0
        private void ShowShaderErrors(RayTracingShader s)
        {
            if (Event.current.type == EventType.Layout)
            {
                int n = ShaderUtil.GetRayTracingShaderMessageCount(s);
                m_ShaderMessages = null;
                if (n >= 1)
                {
                    m_ShaderMessages = ShaderUtil.GetRayTracingShaderMessages(s);
                }
            }

            if (m_ShaderMessages == null)
            {
                return;
            }
            ShaderInspector.ShaderErrorListUI(s, m_ShaderMessages, ref m_ScrollPosition);
        }