Record Class GlTransientMemory.Fallback.GlAllocation
java.lang.Object
java.lang.Record
com.mojang.blaze3d.opengl.GlTransientMemory.Fallback.GlAllocation
- Enclosing class:
GlTransientMemory.Fallback
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GlBufferThe field for theglBufferrecord component.private final longThe field for thehostBufferrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateGlAllocation(GlBuffer glBuffer, long hostBuffer) Creates an instance of aGlAllocationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.glBuffer()Returns the value of theglBufferrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thehostBufferrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
glBuffer
The field for theglBufferrecord component. -
hostBuffer
private final long hostBufferThe field for thehostBufferrecord component.
-
-
Constructor Details
-
GlAllocation
Creates an instance of aGlAllocationrecord class.- Parameters:
glBuffer- the value for theglBufferrecord componenthostBuffer- the value for thehostBufferrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
glBuffer
Returns the value of theglBufferrecord component.- Returns:
- the value of the
glBufferrecord component
-
hostBuffer
public long hostBuffer()Returns the value of thehostBufferrecord component.- Returns:
- the value of the
hostBufferrecord component
-