Record Class PipelineCompiler.PipelineProgramKey

java.lang.Object
java.lang.Record
dev.engine_room.flywheel.backend.compile.PipelineCompiler.PipelineProgramKey
Record Components:
instanceType - The instance shader to use.
contextShader - The context shader to use.
light - The light shader to use.
Enclosing class:
PipelineCompiler

public static record PipelineCompiler.PipelineProgramKey(InstanceType<?> instanceType, ContextShader contextShader, LightShader light, MaterialShaders materialShaders, boolean useCutout, boolean debugEnabled, PipelineCompiler.OitMode oit) extends Record
Represents the entire context of a program's usage.
  • Constructor Details

    • PipelineProgramKey

      public PipelineProgramKey(InstanceType<?> instanceType, ContextShader contextShader, LightShader light, MaterialShaders materialShaders, boolean useCutout, boolean debugEnabled, PipelineCompiler.OitMode oit)
      Creates an instance of a PipelineProgramKey record class.
      Parameters:
      instanceType - the value for the instanceType record component
      contextShader - the value for the contextShader record component
      light - the value for the light record component
      materialShaders - the value for the materialShaders record component
      useCutout - the value for the useCutout record component
      debugEnabled - the value for the debugEnabled record component
      oit - the value for the oit record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • instanceType

      public InstanceType<?> instanceType()
      Returns the value of the instanceType record component.
      Returns:
      the value of the instanceType record component
    • contextShader

      public ContextShader contextShader()
      Returns the value of the contextShader record component.
      Returns:
      the value of the contextShader record component
    • light

      public LightShader light()
      Returns the value of the light record component.
      Returns:
      the value of the light record component
    • materialShaders

      public MaterialShaders materialShaders()
      Returns the value of the materialShaders record component.
      Returns:
      the value of the materialShaders record component
    • useCutout

      public boolean useCutout()
      Returns the value of the useCutout record component.
      Returns:
      the value of the useCutout record component
    • debugEnabled

      public boolean debugEnabled()
      Returns the value of the debugEnabled record component.
      Returns:
      the value of the debugEnabled record component
    • oit

      Returns the value of the oit record component.
      Returns:
      the value of the oit record component