Record Class ChunkSectionsToRender.GpuMultiDrawIndexedIndirect
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.chunk.ChunkSectionsToRender.GpuMultiDrawIndexedIndirect
- Enclosing class:
ChunkSectionsToRender
public static record ChunkSectionsToRender.GpuMultiDrawIndexedIndirect(GpuBufferSlice vertexBuffer, @Nullable GpuBufferSlice indexBuffer, @Nullable IndexType indexType, GpuBufferSlice indirectCommandBuffer, int drawCount)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thedrawCountrecord component.private final @Nullable GpuBufferSliceThe field for theindexBufferrecord component.The field for theindexTyperecord component.private final GpuBufferSliceThe field for theindirectCommandBufferrecord component.private final GpuBufferSliceThe field for thevertexBufferrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGpuMultiDrawIndexedIndirect(GpuBufferSlice vertexBuffer, @Nullable GpuBufferSlice indexBuffer, @Nullable IndexType indexType, GpuBufferSlice indirectCommandBuffer, int drawCount) Creates an instance of aGpuMultiDrawIndexedIndirectrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thedrawCountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theindexBufferrecord component.Returns the value of theindexTyperecord component.Returns the value of theindirectCommandBufferrecord 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
-
indirectCommandBuffer
The field for theindirectCommandBufferrecord component. -
drawCount
private final int drawCountThe field for thedrawCountrecord component.
-
-
Constructor Details
-
GpuMultiDrawIndexedIndirect
public GpuMultiDrawIndexedIndirect(GpuBufferSlice vertexBuffer, @Nullable GpuBufferSlice indexBuffer, @Nullable IndexType indexType, GpuBufferSlice indirectCommandBuffer, int drawCount) Creates an instance of aGpuMultiDrawIndexedIndirectrecord class.- Parameters:
vertexBuffer- the value for thevertexBufferrecord componentindexBuffer- the value for theindexBufferrecord componentindexType- the value for theindexTyperecord componentindirectCommandBuffer- the value for theindirectCommandBufferrecord componentdrawCount- the value for thedrawCountrecord 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
-
indirectCommandBuffer
Returns the value of theindirectCommandBufferrecord component.- Returns:
- the value of the
indirectCommandBufferrecord component
-
drawCount
public int drawCount()Returns the value of thedrawCountrecord component.- Returns:
- the value of the
drawCountrecord component
-