Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Feedback Extend ShaderUtil API (GetShaderInfo)

Discussion in 'Editor & General Support' started by Peter77, Apr 3, 2019.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,313
    ShaderUtil contains the ShaderUtil.GetAllShaderInfo() method.

    I would like to be able to get the ShaderInfo for a specific shader only, method signature like:
    Code (CSharp):
    1. ShaderInfo ShaderUtil.GetShaderInfo(Shader shader)
    Additionally, I would find it very useful if you could also add "hasWarnings" property to the ShaderInfo struct. At the moment, it contains "hasErrors", but not "hasWarnings".
     
  2. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,583