Record Class GuiAssetStats
java.lang.Object
java.lang.Record
com.render.api.gui.GuiAssetStats
- Record Components:
cachedEntries- retained source/resolution entriesresidentCpuBytes- decoded texture pixels shared with software-mask samplingresidentGpuBytes- estimated RGBA8 texture bytesreservedDecodeBytes- conservative bytes reserved by admitted decode/upload jobspeakReservedDecodeBytes- peak admitted decode/upload reservationdeferredLoads- 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 Summary
ConstructorsConstructorDescriptionGuiAssetStats(int cachedEntries, long residentCpuBytes, long residentGpuBytes, long reservedDecodeBytes, long peakReservedDecodeBytes, int deferredLoads) Creates an instance of aGuiAssetStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecachedEntriesrecord component.intReturns the value of thedeferredLoadsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thepeakReservedDecodeBytesrecord component.longReturns the value of thereservedDecodeBytesrecord component.longReturns the value of theresidentCpuBytesrecord component.longReturns the value of theresidentGpuBytesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GuiAssetStats
public GuiAssetStats(int cachedEntries, long residentCpuBytes, long residentGpuBytes, long reservedDecodeBytes, long peakReservedDecodeBytes, int deferredLoads) Creates an instance of aGuiAssetStatsrecord class.- Parameters:
cachedEntries- the value for thecachedEntriesrecord componentresidentCpuBytes- the value for theresidentCpuBytesrecord componentresidentGpuBytes- the value for theresidentGpuBytesrecord componentreservedDecodeBytes- the value for thereservedDecodeBytesrecord componentpeakReservedDecodeBytes- the value for thepeakReservedDecodeBytesrecord componentdeferredLoads- the value for thedeferredLoadsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 thecomparemethod from their corresponding wrapper classes. -
cachedEntries
public int cachedEntries()Returns the value of thecachedEntriesrecord component.- Returns:
- the value of the
cachedEntriesrecord component
-
residentCpuBytes
public long residentCpuBytes()Returns the value of theresidentCpuBytesrecord component.- Returns:
- the value of the
residentCpuBytesrecord component
-
residentGpuBytes
public long residentGpuBytes()Returns the value of theresidentGpuBytesrecord component.- Returns:
- the value of the
residentGpuBytesrecord component
-
reservedDecodeBytes
public long reservedDecodeBytes()Returns the value of thereservedDecodeBytesrecord component.- Returns:
- the value of the
reservedDecodeBytesrecord component
-
peakReservedDecodeBytes
public long peakReservedDecodeBytes()Returns the value of thepeakReservedDecodeBytesrecord component.- Returns:
- the value of the
peakReservedDecodeBytesrecord component
-
deferredLoads
public int deferredLoads()Returns the value of thedeferredLoadsrecord component.- Returns:
- the value of the
deferredLoadsrecord component
-