Record Class DeviceLimits

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

public record DeviceLimits(int maxAnisotropy, int minUniformOffsetAlignment, int maxTextureSize, long maxMemoryAllocationSize, int maxMultiDrawDirectInterleavedDrawCount, int maxColorAttachments) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
    The field for the maxAnisotropy record component.
    private final int
    The field for the maxColorAttachments record component.
    private final long
    The field for the maxMemoryAllocationSize record component.
    private final int
    The field for the maxMultiDrawDirectInterleavedDrawCount record component.
    private final int
    The field for the maxTextureSize record component.
    private final int
    The field for the minUniformOffsetAlignment record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DeviceLimits(int maxAnisotropy, int minUniformOffsetAlignment, int maxTextureSize, long maxMemoryAllocationSize, int maxMultiDrawDirectInterleavedDrawCount, int maxColorAttachments)
    Creates an instance of a DeviceLimits record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the maxAnisotropy record component.
    int
    Returns the value of the maxColorAttachments record component.
    long
    Returns the value of the maxMemoryAllocationSize record component.
    int
    Returns the value of the maxMultiDrawDirectInterleavedDrawCount record component.
    int
    Returns the value of the maxTextureSize record component.
    int
     
    int
    Returns the value of the minUniformOffsetAlignment 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

    • maxAnisotropy

      private final int maxAnisotropy
      The field for the maxAnisotropy record component.
    • minUniformOffsetAlignment

      private final int minUniformOffsetAlignment
      The field for the minUniformOffsetAlignment record component.
    • maxTextureSize

      private final int maxTextureSize
      The field for the maxTextureSize record component.
    • maxMemoryAllocationSize

      private final long maxMemoryAllocationSize
      The field for the maxMemoryAllocationSize record component.
    • maxMultiDrawDirectInterleavedDrawCount

      private final int maxMultiDrawDirectInterleavedDrawCount
      The field for the maxMultiDrawDirectInterleavedDrawCount record component.
    • maxColorAttachments

      private final int maxColorAttachments
      The field for the maxColorAttachments record component.
  • Constructor Details

    • DeviceLimits

      public DeviceLimits(int maxAnisotropy, int minUniformOffsetAlignment, int maxTextureSize, long maxMemoryAllocationSize, int maxMultiDrawDirectInterleavedDrawCount, int maxColorAttachments)
      Creates an instance of a DeviceLimits record class.
      Parameters:
      maxAnisotropy - the value for the maxAnisotropy record component
      minUniformOffsetAlignment - the value for the minUniformOffsetAlignment record component
      maxTextureSize - the value for the maxTextureSize record component
      maxMemoryAllocationSize - the value for the maxMemoryAllocationSize record component
      maxMultiDrawDirectInterleavedDrawCount - the value for the maxMultiDrawDirectInterleavedDrawCount record component
      maxColorAttachments - the value for the maxColorAttachments record component
  • Method Details

    • maxTextureSizeForFormat

      public int maxTextureSizeForFormat(GpuFormat format)
    • 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.
    • maxAnisotropy

      public int maxAnisotropy()
      Returns the value of the maxAnisotropy record component.
      Returns:
      the value of the maxAnisotropy record component
    • minUniformOffsetAlignment

      public int minUniformOffsetAlignment()
      Returns the value of the minUniformOffsetAlignment record component.
      Returns:
      the value of the minUniformOffsetAlignment record component
    • maxTextureSize

      public int maxTextureSize()
      Returns the value of the maxTextureSize record component.
      Returns:
      the value of the maxTextureSize record component
    • maxMemoryAllocationSize

      public long maxMemoryAllocationSize()
      Returns the value of the maxMemoryAllocationSize record component.
      Returns:
      the value of the maxMemoryAllocationSize record component
    • maxMultiDrawDirectInterleavedDrawCount

      public int maxMultiDrawDirectInterleavedDrawCount()
      Returns the value of the maxMultiDrawDirectInterleavedDrawCount record component.
      Returns:
      the value of the maxMultiDrawDirectInterleavedDrawCount record component
    • maxColorAttachments

      public int maxColorAttachments()
      Returns the value of the maxColorAttachments record component.
      Returns:
      the value of the maxColorAttachments record component