Record Class DeviceFeatures

java.lang.Object
java.lang.Record
com.mojang.blaze3d.systems.DeviceFeatures

public record DeviceFeatures(boolean shaderDrawParameters, boolean multiDrawDirectInterleaved, boolean multiDrawDirectSeparate, boolean multiDrawIndirect, boolean drawIndirect, boolean nonZeroFirstInstance, boolean persistentMapping) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final boolean
    The field for the drawIndirect record component.
    private final boolean
    The field for the multiDrawDirectInterleaved record component.
    private final boolean
    The field for the multiDrawDirectSeparate record component.
    private final boolean
    The field for the multiDrawIndirect record component.
    private final boolean
    The field for the nonZeroFirstInstance record component.
    private final boolean
    The field for the persistentMapping record component.
    private final boolean
    The field for the shaderDrawParameters record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DeviceFeatures(boolean shaderDrawParameters, boolean multiDrawDirectInterleaved, boolean multiDrawDirectSeparate, boolean multiDrawIndirect, boolean drawIndirect, boolean nonZeroFirstInstance, boolean persistentMapping)
    Creates an instance of a DeviceFeatures record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the drawIndirect record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the multiDrawDirectInterleaved record component.
    boolean
    Returns the value of the multiDrawDirectSeparate record component.
    boolean
    Returns the value of the multiDrawIndirect record component.
    boolean
    Returns the value of the nonZeroFirstInstance record component.
    boolean
    Returns the value of the persistentMapping record component.
    boolean
    Returns the value of the shaderDrawParameters record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • shaderDrawParameters

      private final boolean shaderDrawParameters
      The field for the shaderDrawParameters record component.
    • multiDrawDirectInterleaved

      private final boolean multiDrawDirectInterleaved
      The field for the multiDrawDirectInterleaved record component.
    • multiDrawDirectSeparate

      private final boolean multiDrawDirectSeparate
      The field for the multiDrawDirectSeparate record component.
    • multiDrawIndirect

      private final boolean multiDrawIndirect
      The field for the multiDrawIndirect record component.
    • drawIndirect

      private final boolean drawIndirect
      The field for the drawIndirect record component.
    • nonZeroFirstInstance

      private final boolean nonZeroFirstInstance
      The field for the nonZeroFirstInstance record component.
    • persistentMapping

      private final boolean persistentMapping
      The field for the persistentMapping record component.
  • Constructor Details

    • DeviceFeatures

      public DeviceFeatures(boolean shaderDrawParameters, boolean multiDrawDirectInterleaved, boolean multiDrawDirectSeparate, boolean multiDrawIndirect, boolean drawIndirect, boolean nonZeroFirstInstance, boolean persistentMapping)
      Creates an instance of a DeviceFeatures record class.
      Parameters:
      shaderDrawParameters - the value for the shaderDrawParameters record component
      multiDrawDirectInterleaved - the value for the multiDrawDirectInterleaved record component
      multiDrawDirectSeparate - the value for the multiDrawDirectSeparate record component
      multiDrawIndirect - the value for the multiDrawIndirect record component
      drawIndirect - the value for the drawIndirect record component
      nonZeroFirstInstance - the value for the nonZeroFirstInstance record component
      persistentMapping - the value for the persistentMapping 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. All components in this record class are compared with the compare method from their corresponding wrapper classes.
      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.
    • shaderDrawParameters

      public boolean shaderDrawParameters()
      Returns the value of the shaderDrawParameters record component.
      Returns:
      the value of the shaderDrawParameters record component
    • multiDrawDirectInterleaved

      public boolean multiDrawDirectInterleaved()
      Returns the value of the multiDrawDirectInterleaved record component.
      Returns:
      the value of the multiDrawDirectInterleaved record component
    • multiDrawDirectSeparate

      public boolean multiDrawDirectSeparate()
      Returns the value of the multiDrawDirectSeparate record component.
      Returns:
      the value of the multiDrawDirectSeparate record component
    • multiDrawIndirect

      public boolean multiDrawIndirect()
      Returns the value of the multiDrawIndirect record component.
      Returns:
      the value of the multiDrawIndirect record component
    • drawIndirect

      public boolean drawIndirect()
      Returns the value of the drawIndirect record component.
      Returns:
      the value of the drawIndirect record component
    • nonZeroFirstInstance

      public boolean nonZeroFirstInstance()
      Returns the value of the nonZeroFirstInstance record component.
      Returns:
      the value of the nonZeroFirstInstance record component
    • persistentMapping

      public boolean persistentMapping()
      Returns the value of the persistentMapping record component.
      Returns:
      the value of the persistentMapping record component