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.The field for thecustomIndexBufferrecord component.private final intThe field for thefirstIndexrecord component.private final intThe field for theindexCountrecord component.private final IndexTypeThe field for theindexTyperecord component.private final PrimitiveTopologyThe field for thetopologyrecord component.private final GpuBufferThe field for thevertexBufferrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionExecuteInfo(GpuBuffer vertexBuffer, @Nullable GpuBuffer customIndexBuffer, IndexType indexType, int baseVertex, int firstIndex, int indexCount, PrimitiveTopology topology) Creates an instance of aExecuteInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebaseVertexrecord component.Returns the value of thecustomIndexBufferrecord 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.intReturns the value of theindexCountrecord component.Returns the value of theindexTyperecord component.topology()Returns the value of thetopologyrecord 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. -
customIndexBuffer
-
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. -
topology
The field for thetopologyrecord component.
-
-
Constructor Details
-
ExecuteInfo
public ExecuteInfo(GpuBuffer vertexBuffer, @Nullable GpuBuffer customIndexBuffer, IndexType indexType, int baseVertex, int firstIndex, int indexCount, PrimitiveTopology topology) Creates an instance of aExecuteInforecord class.- Parameters:
vertexBuffer- the value for thevertexBufferrecord componentcustomIndexBuffer- the value for thecustomIndexBufferrecord componentindexType- the value for theindexTyperecord componentbaseVertex- the value for thebaseVertexrecord componentfirstIndex- the value for thefirstIndexrecord componentindexCount- the value for theindexCountrecord componenttopology- the value for thetopologyrecord component
-
-
Method Details
-
indexBuffer
-
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
-
customIndexBuffer
-
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
-
topology
Returns the value of thetopologyrecord component.- Returns:
- the value of the
topologyrecord component
-