Record Class WgpuBindings.DeviceLimits

java.lang.Object
java.lang.Record
dev.engine.graphics.webgpu.WgpuBindings.DeviceLimits
Enclosing interface:
WgpuBindings

public static record WgpuBindings.DeviceLimits(int maxTextureDimension2D, int maxTextureDimension3D, int maxUniformBufferBindingSize, int maxStorageBufferBindingSize, int maxColorAttachments, float maxSamplerAnisotropy) extends Record
Device limits queried from the GPU.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DeviceLimits(int maxTextureDimension2D, int maxTextureDimension3D, int maxUniformBufferBindingSize, int maxStorageBufferBindingSize, int maxColorAttachments, float maxSamplerAnisotropy)
    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 maxColorAttachments record component.
    float
    Returns the value of the maxSamplerAnisotropy record component.
    int
    Returns the value of the maxStorageBufferBindingSize record component.
    int
    Returns the value of the maxTextureDimension2D record component.
    int
    Returns the value of the maxTextureDimension3D record component.
    int
    Returns the value of the maxUniformBufferBindingSize 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
  • Constructor Details

    • DeviceLimits

      public DeviceLimits(int maxTextureDimension2D, int maxTextureDimension3D, int maxUniformBufferBindingSize, int maxStorageBufferBindingSize, int maxColorAttachments, float maxSamplerAnisotropy)
      Creates an instance of a DeviceLimits record class.
      Parameters:
      maxTextureDimension2D - the value for the maxTextureDimension2D record component
      maxTextureDimension3D - the value for the maxTextureDimension3D record component
      maxUniformBufferBindingSize - the value for the maxUniformBufferBindingSize record component
      maxStorageBufferBindingSize - the value for the maxStorageBufferBindingSize record component
      maxColorAttachments - the value for the maxColorAttachments record component
      maxSamplerAnisotropy - the value for the maxSamplerAnisotropy 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.
    • maxTextureDimension2D

      public int maxTextureDimension2D()
      Returns the value of the maxTextureDimension2D record component.
      Returns:
      the value of the maxTextureDimension2D record component
    • maxTextureDimension3D

      public int maxTextureDimension3D()
      Returns the value of the maxTextureDimension3D record component.
      Returns:
      the value of the maxTextureDimension3D record component
    • maxUniformBufferBindingSize

      public int maxUniformBufferBindingSize()
      Returns the value of the maxUniformBufferBindingSize record component.
      Returns:
      the value of the maxUniformBufferBindingSize record component
    • maxStorageBufferBindingSize

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

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

      public float maxSamplerAnisotropy()
      Returns the value of the maxSamplerAnisotropy record component.
      Returns:
      the value of the maxSamplerAnisotropy record component