Package com.mojang.blaze3d.systems
Record Class RenderPass.Draw
java.lang.Object
java.lang.Record
com.mojang.blaze3d.systems.RenderPass.Draw
- Enclosing interface:
RenderPass
public static record RenderPass.Draw(int slot, GpuBuffer vertexBuffer, @Nullable GpuBuffer indexBuffer, @Nullable VertexFormat.IndexType indexType, int firstIndex, int indexCount, @Nullable Consumer<RenderPass.UniformUploader> uniformUploaderConsumer)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
The field for thefirstIndex
record component.private final GpuBuffer
The field for theindexBuffer
record component.private final int
The field for theindexCount
record component.private final VertexFormat.IndexType
The field for theindexType
record component.private final int
The field for theslot
record component.private final Consumer
<RenderPass.UniformUploader> The field for theuniformUploaderConsumer
record component.private final GpuBuffer
The field for thevertexBuffer
record component. -
Constructor Summary
ConstructorsConstructorDescriptionDraw
(int p_409953_, GpuBuffer p_410253_, GpuBuffer p_410419_, VertexFormat.IndexType p_410538_, int p_410203_, int p_410514_) Draw
(int slot, GpuBuffer vertexBuffer, GpuBuffer indexBuffer, VertexFormat.IndexType indexType, int firstIndex, int indexCount, Consumer<RenderPass.UniformUploader> uniformUploaderConsumer) Creates an instance of aDraw
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.int
Returns the value of thefirstIndex
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theindexBuffer
record component.int
Returns the value of theindexCount
record component.Returns the value of theindexType
record component.int
slot()
Returns the value of theslot
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theuniformUploaderConsumer
record component.Returns the value of thevertexBuffer
record component.
-
Field Details
-
slot
private final int slotThe field for theslot
record component. -
vertexBuffer
The field for thevertexBuffer
record component. -
indexBuffer
The field for theindexBuffer
record component. -
indexType
The field for theindexType
record component. -
firstIndex
private final int firstIndexThe field for thefirstIndex
record component. -
indexCount
private final int indexCountThe field for theindexCount
record component. -
uniformUploaderConsumer
The field for theuniformUploaderConsumer
record component.
-
-
Constructor Details
-
Draw
public Draw(int p_409953_, GpuBuffer p_410253_, GpuBuffer p_410419_, VertexFormat.IndexType p_410538_, int p_410203_, int p_410514_) -
Draw
public Draw(int slot, GpuBuffer vertexBuffer, @Nullable GpuBuffer indexBuffer, @Nullable VertexFormat.IndexType indexType, int firstIndex, int indexCount, @Nullable Consumer<RenderPass.UniformUploader> uniformUploaderConsumer) Creates an instance of aDraw
record class.- Parameters:
slot
- the value for theslot
record componentvertexBuffer
- the value for thevertexBuffer
record componentindexBuffer
- the value for theindexBuffer
record componentindexType
- the value for theindexType
record componentfirstIndex
- the value for thefirstIndex
record componentindexCount
- the value for theindexCount
record componentuniformUploaderConsumer
- the value for theuniformUploaderConsumer
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
slot
public int slot()Returns the value of theslot
record component.- Returns:
- the value of the
slot
record component
-
vertexBuffer
Returns the value of thevertexBuffer
record component.- Returns:
- the value of the
vertexBuffer
record component
-
indexBuffer
Returns the value of theindexBuffer
record component.- Returns:
- the value of the
indexBuffer
record component
-
indexType
Returns the value of theindexType
record component.- Returns:
- the value of the
indexType
record component
-
firstIndex
public int firstIndex()Returns the value of thefirstIndex
record component.- Returns:
- the value of the
firstIndex
record component
-
indexCount
public int indexCount()Returns the value of theindexCount
record component.- Returns:
- the value of the
indexCount
record component
-
uniformUploaderConsumer
Returns the value of theuniformUploaderConsumer
record component.- Returns:
- the value of the
uniformUploaderConsumer
record component
-