Record Class BaseIntShader.Uniform

java.lang.Object
java.lang.Record
gaiasky.render.gdx.shader.BaseIntShader.Uniform
All Implemented Interfaces:
BaseIntShader.Validator
Enclosing class:
BaseIntShader

public static record BaseIntShader.Uniform(String alias, Bits materialMask, Bits environmentMask, Bits overallMask) extends Record implements BaseIntShader.Validator
  • Constructor Details

    • Uniform

      public Uniform(String alias, Bits materialMask, Bits environmentMask)
    • Uniform

      public Uniform(String alias, int overallIndex)
    • Uniform

      public Uniform(String alias)
    • Uniform

      public Uniform(String alias, Bits materialMask, Bits environmentMask, Bits overallMask)
      Creates an instance of a Uniform record class.
      Parameters:
      alias - the value for the alias record component
      materialMask - the value for the materialMask record component
      environmentMask - the value for the environmentMask record component
      overallMask - the value for the overallMask record component
  • Method Details

    • validate

      public boolean validate(BaseIntShader shader, int inputID, IntRenderable renderable)
      Specified by:
      validate in interface BaseIntShader.Validator
      Returns:
      True if the input is valid for the renderable, false otherwise.
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • alias

      public String alias()
      Returns the value of the alias record component.
      Returns:
      the value of the alias record component
    • materialMask

      public Bits materialMask()
      Returns the value of the materialMask record component.
      Returns:
      the value of the materialMask record component
    • environmentMask

      public Bits environmentMask()
      Returns the value of the environmentMask record component.
      Returns:
      the value of the environmentMask record component
    • overallMask

      public Bits overallMask()
      Returns the value of the overallMask record component.
      Returns:
      the value of the overallMask record component