Record Class GuiAssetStats

java.lang.Object
java.lang.Record
com.render.api.gui.GuiAssetStats
Record Components:
cachedEntries - retained source/resolution entries
residentCpuBytes - decoded texture pixels shared with software-mask sampling
residentGpuBytes - estimated RGBA8 texture bytes
reservedDecodeBytes - conservative bytes reserved by admitted decode/upload jobs
peakReservedDecodeBytes - peak admitted decode/upload reservation
deferredLoads - bounded source entries waiting for a reservation; no snapshot/decode buffers are allocated yet

public record GuiAssetStats(int cachedEntries, long residentCpuBytes, long residentGpuBytes, long reservedDecodeBytes, long peakReservedDecodeBytes, int deferredLoads) extends Record
Immutable GUI asset residency and conservative decode reservations.
  • Constructor Details

    • GuiAssetStats

      public GuiAssetStats(int cachedEntries, long residentCpuBytes, long residentGpuBytes, long reservedDecodeBytes, long peakReservedDecodeBytes, int deferredLoads)
      Creates an instance of a GuiAssetStats record class.
      Parameters:
      cachedEntries - the value for the cachedEntries record component
      residentCpuBytes - the value for the residentCpuBytes record component
      residentGpuBytes - the value for the residentGpuBytes record component
      reservedDecodeBytes - the value for the reservedDecodeBytes record component
      peakReservedDecodeBytes - the value for the peakReservedDecodeBytes record component
      deferredLoads - the value for the deferredLoads 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.
    • cachedEntries

      public int cachedEntries()
      Returns the value of the cachedEntries record component.
      Returns:
      the value of the cachedEntries record component
    • residentCpuBytes

      public long residentCpuBytes()
      Returns the value of the residentCpuBytes record component.
      Returns:
      the value of the residentCpuBytes record component
    • residentGpuBytes

      public long residentGpuBytes()
      Returns the value of the residentGpuBytes record component.
      Returns:
      the value of the residentGpuBytes record component
    • reservedDecodeBytes

      public long reservedDecodeBytes()
      Returns the value of the reservedDecodeBytes record component.
      Returns:
      the value of the reservedDecodeBytes record component
    • peakReservedDecodeBytes

      public long peakReservedDecodeBytes()
      Returns the value of the peakReservedDecodeBytes record component.
      Returns:
      the value of the peakReservedDecodeBytes record component
    • deferredLoads

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