Record Class BufferDescriptor
java.lang.Object
java.lang.Record
dev.engine.graphics.buffer.BufferDescriptor
public record BufferDescriptor(long size, BufferUsage usage, AccessPattern accessPattern)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBufferDescriptor(long size, BufferUsage usage, AccessPattern accessPattern) Creates an instance of aBufferDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessPatternrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.usage()Returns the value of theusagerecord component.
-
Constructor Details
-
BufferDescriptor
Creates an instance of aBufferDescriptorrecord class.- Parameters:
size- the value for thesizerecord componentusage- the value for theusagerecord componentaccessPattern- the value for theaccessPatternrecord 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. -
size
public long size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
usage
Returns the value of theusagerecord component.- Returns:
- the value of the
usagerecord component
-
accessPattern
Returns the value of theaccessPatternrecord component.- Returns:
- the value of the
accessPatternrecord component
-