Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Feature Request Add ComputeShader support to ShaderUtil.ShaderHasError

Discussion in 'Shaders' started by DrummerB, May 26, 2020.

  1. DrummerB

    DrummerB

    Joined:
    Dec 19, 2013
    Posts:
    135
    The ShaderUtil adds some useful utilities to work with shaders in the editor. Some functionality only seems to work with normal material shaders and not with compute shaders.

    For instance, it would be nice to know if a compute shader had compile errors. This can be done for regular shaders using ShaderUtil.ShaderHasError, but not for compute shaders. As a workaround I can query all compute shader messages and count the errors, but I thought an override for ShaderHasErrors would be useful.
     
  2. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,983
    Thanks!
    The team handling this said they'll put it into their todo list :)