Record Class StagedVertexBuffer.ExecuteInfo
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.StagedVertexBuffer.ExecuteInfo
- Enclosing class:
StagedVertexBuffer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thebaseVertexrecord component.private final intThe field for thefirstIndexrecord component.private final GpuBufferThe field for theindexBufferrecord component.private final intThe field for theindexCountrecord component.private final IndexTypeThe field for theindexTyperecord component.private final GpuBufferThe field for thevertexBufferrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionExecuteInfo(GpuBuffer vertexBuffer, GpuBuffer indexBuffer, IndexType indexType, int baseVertex, int firstIndex, int indexCount) Creates an instance of aExecuteInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebaseVertexrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefirstIndexrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theindexBufferrecord component.intReturns the value of theindexCountrecord component.Returns the value of theindexTyperecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevertexBufferrecord component.
-
Field Details
-
vertexBuffer
The field for thevertexBufferrecord component. -
indexBuffer
The field for theindexBufferrecord component. -
indexType
The field for theindexTyperecord component. -
baseVertex
private final int baseVertexThe field for thebaseVertexrecord component. -
firstIndex
private final int firstIndexThe field for thefirstIndexrecord component. -
indexCount
private final int indexCountThe field for theindexCountrecord component.
-
-
Constructor Details
-
ExecuteInfo
public ExecuteInfo(GpuBuffer vertexBuffer, GpuBuffer indexBuffer, IndexType indexType, int baseVertex, int firstIndex, int indexCount) Creates an instance of aExecuteInforecord class.- Parameters:
vertexBuffer- the value for thevertexBufferrecord componentindexBuffer- the value for theindexBufferrecord componentindexType- the value for theindexTyperecord componentbaseVertex- the value for thebaseVertexrecord componentfirstIndex- the value for thefirstIndexrecord componentindexCount- the value for theindexCountrecord 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. -
vertexBuffer
Returns the value of thevertexBufferrecord component.- Returns:
- the value of the
vertexBufferrecord component
-
indexBuffer
Returns the value of theindexBufferrecord component.- Returns:
- the value of the
indexBufferrecord component
-
indexType
Returns the value of theindexTyperecord component.- Returns:
- the value of the
indexTyperecord component
-
baseVertex
public int baseVertex()Returns the value of thebaseVertexrecord component.- Returns:
- the value of the
baseVertexrecord component
-
firstIndex
public int firstIndex()Returns the value of thefirstIndexrecord component.- Returns:
- the value of the
firstIndexrecord component
-
indexCount
public int indexCount()Returns the value of theindexCountrecord component.- Returns:
- the value of the
indexCountrecord component
-