Class ShaderFunction

java.lang.Object
com.jozufozu.flywheel.backend.glsl.parse.ShaderFunction

public class ShaderFunction extends Object
  • Field Details

    • PATTERN

      public static final Pattern PATTERN
    • argument

      public static final Pattern argument
    • assignment

      public static final Pattern assignment
    • self

      public final Span self
  • Constructor Details

  • Method Details

    • parseFunctions

      public static com.google.common.collect.ImmutableMap<String,ShaderFunction> parseFunctions(SourceLines source)
      Scan the source for function definitions and "parse" them into objects that contain properties of the function.
    • getType

      public Span getType()
    • getName

      public Span getName()
    • getArgs

      public Span getArgs()
    • getBody

      public Span getBody()
    • call

      public String call(String... args)
    • getParameterType

      public Span getParameterType(int index)
    • getParameters

      public com.google.common.collect.ImmutableList<ShaderVariable> getParameters()
    • returnTypeName

      public String returnTypeName()
    • parseArguments

      protected com.google.common.collect.ImmutableList<ShaderVariable> parseArguments()
    • toString

      public String toString()
      Overrides:
      toString in class Object