UnityEditor.ShaderUtil.GetComputeShaderErrorCount C# (CSharp) Method

GetComputeShaderErrorCount() private method

private GetComputeShaderErrorCount ( ComputeShader s ) : int
s UnityEngine.ComputeShader
return int
        internal static extern int GetComputeShaderErrorCount(ComputeShader s);
        [MethodImpl(MethodImplOptions.InternalCall)]

Usage Example

示例#1
0
 private void ShowShaderErrors(ComputeShader s)
 {
     if (ShaderUtil.GetComputeShaderErrorCount(s) >= 1)
     {
         ShaderInspector.ShaderErrorListUI(s, ShaderUtil.GetComputeShaderErrors(s), ref this.m_ScrollPosition);
     }
 }
All Usage Examples Of UnityEditor.ShaderUtil::GetComputeShaderErrorCount