Class ShaderLog

java.lang.Object
lol.trq.helios.shader.ShaderLog

public final class ShaderLog extends Object
Maps the locations in a GLSL info log back to file names.

Drivers print locations in different shapes: NVIDIA 0(12) : error, AMD, Intel and Apple ERROR: 0:12: ..., Mesa 0:12(5): error. Each leading <source>:<line> or <source>(<line>) becomes <file>:<line>.

  • Method Details

    • describe

      public static String describe(String log, List<String> files)
      Rewrites a log.
      Parameters:
      log - the driver's log
      files - file names by source-string number
      Returns:
      the rewritten log; an unknown source number is left as it was