Record Class BackendRenderPipeline.CreateInfo.VertexBuffer
java.lang.Object
java.lang.Record
com.mojang.renderpearl.backend.api.BackendRenderPipeline.CreateInfo.VertexBuffer
- Enclosing class:
BackendRenderPipeline.CreateInfo
public static record BackendRenderPipeline.CreateInfo.VertexBuffer(int bufferSlot, int stride, int stepRate)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thebufferSlotrecord component.private final intThe field for thestepRaterecord component.private final intThe field for thestriderecord component. -
Constructor Summary
ConstructorsConstructorDescriptionVertexBuffer(int bufferSlot, int stride, int stepRate) Creates an instance of aVertexBufferrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebufferSlotrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intstepRate()Returns the value of thestepRaterecord component.intstride()Returns the value of thestriderecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
bufferSlot
private final int bufferSlotThe field for thebufferSlotrecord component. -
stride
private final int strideThe field for thestriderecord component. -
stepRate
private final int stepRateThe field for thestepRaterecord component.
-
-
Constructor Details
-
VertexBuffer
public VertexBuffer(int bufferSlot, int stride, int stepRate) Creates an instance of aVertexBufferrecord class.- Parameters:
bufferSlot- the value for thebufferSlotrecord componentstride- the value for thestriderecord componentstepRate- the value for thestepRaterecord 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. -
bufferSlot
public int bufferSlot()Returns the value of thebufferSlotrecord component.- Returns:
- the value of the
bufferSlotrecord component
-
stride
public int stride()Returns the value of thestriderecord component.- Returns:
- the value of the
striderecord component
-
stepRate
public int stepRate()Returns the value of thestepRaterecord component.- Returns:
- the value of the
stepRaterecord component
-