Record Class RenderPass.Draw<T>

java.lang.Object
java.lang.Record
com.mojang.blaze3d.systems.RenderPass.Draw<T>
Enclosing class:
RenderPass

public static record RenderPass.Draw<T>(int slot, GpuBuffer vertexBuffer, @Nullable GpuBuffer indexBuffer, @Nullable VertexFormat.IndexType indexType, int firstIndex, int indexCount, int baseVertex, @Nullable BiConsumer<T, RenderPass.UniformUploader> uniformUploaderConsumer) extends Record
  • Field Details

    • slot

      private final int slot
      The field for the slot record component.
    • vertexBuffer

      private final GpuBuffer vertexBuffer
      The field for the vertexBuffer record component.
    • indexBuffer

      private final @Nullable GpuBuffer indexBuffer
      The field for the indexBuffer record component.
    • indexType

      private final @Nullable VertexFormat.IndexType indexType
      The field for the indexType record component.
    • firstIndex

      private final int firstIndex
      The field for the firstIndex record component.
    • indexCount

      private final int indexCount
      The field for the indexCount record component.
    • baseVertex

      private final int baseVertex
      The field for the baseVertex record component.
    • uniformUploaderConsumer

      private final @Nullable BiConsumer<T, RenderPass.UniformUploader> uniformUploaderConsumer
      The field for the uniformUploaderConsumer record component.
  • Constructor Details

    • Draw

      public Draw(int slot, GpuBuffer vertexBuffer, GpuBuffer indexBuffer, VertexFormat.IndexType indexType, int firstIndex, int indexCount, int baseVertex)
    • Draw

      public Draw(int slot, GpuBuffer vertexBuffer, @Nullable GpuBuffer indexBuffer, @Nullable VertexFormat.IndexType indexType, int firstIndex, int indexCount, int baseVertex, @Nullable BiConsumer<T, RenderPass.UniformUploader> uniformUploaderConsumer)
      Creates an instance of a Draw record class.
      Parameters:
      slot - the value for the slot record component
      vertexBuffer - the value for the vertexBuffer record component
      indexBuffer - the value for the indexBuffer record component
      indexType - the value for the indexType record component
      firstIndex - the value for the firstIndex record component
      indexCount - the value for the indexCount record component
      baseVertex - the value for the baseVertex record component
      uniformUploaderConsumer - the value for the uniformUploaderConsumer record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • slot

      public int slot()
      Returns the value of the slot record component.
      Returns:
      the value of the slot record component
    • vertexBuffer

      public GpuBuffer vertexBuffer()
      Returns the value of the vertexBuffer record component.
      Returns:
      the value of the vertexBuffer record component
    • indexBuffer

      public @Nullable GpuBuffer indexBuffer()
      Returns the value of the indexBuffer record component.
      Returns:
      the value of the indexBuffer record component
    • indexType

      public @Nullable VertexFormat.IndexType indexType()
      Returns the value of the indexType record component.
      Returns:
      the value of the indexType record component
    • firstIndex

      public int firstIndex()
      Returns the value of the firstIndex record component.
      Returns:
      the value of the firstIndex record component
    • indexCount

      public int indexCount()
      Returns the value of the indexCount record component.
      Returns:
      the value of the indexCount record component
    • baseVertex

      public int baseVertex()
      Returns the value of the baseVertex record component.
      Returns:
      the value of the baseVertex record component
    • uniformUploaderConsumer

      public @Nullable BiConsumer<T, RenderPass.UniformUploader> uniformUploaderConsumer()
      Returns the value of the uniformUploaderConsumer record component.
      Returns:
      the value of the uniformUploaderConsumer record component