Record Class GlTransientMemory.PersistentMapping.GlAllocation
java.lang.Object
java.lang.Record
com.mojang.blaze3d.opengl.GlTransientMemory.PersistentMapping.GlAllocation
- Enclosing class:
GlTransientMemory.PersistentMapping
private static record GlTransientMemory.PersistentMapping.GlAllocation(int glBuffer, long hostPtr, long size)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateGlAllocation(int glBuffer, long hostPtr, long size) Creates an instance of aGlAllocationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intglBuffer()Returns the value of theglBufferrecord component.final inthashCode()Returns a hash code value for this object.longhostPtr()Returns the value of thehostPtrrecord component.longsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
glBuffer
private final int glBufferThe field for theglBufferrecord component. -
hostPtr
private final long hostPtrThe field for thehostPtrrecord component. -
size
private final long sizeThe field for thesizerecord component.
-
-
Constructor Details
-
GlAllocation
private GlAllocation(int glBuffer, long hostPtr, long size) Creates an instance of aGlAllocationrecord class.- Parameters:
glBuffer- the value for theglBufferrecord componenthostPtr- the value for thehostPtrrecord componentsize- the value for thesizerecord 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. -
glBuffer
public int glBuffer()Returns the value of theglBufferrecord component.- Returns:
- the value of the
glBufferrecord component
-
hostPtr
public long hostPtr()Returns the value of thehostPtrrecord component.- Returns:
- the value of the
hostPtrrecord component
-
size
public long size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-