Record Class StagedVertexBuffer.ExecuteInfo

java.lang.Object
java.lang.Record
net.minecraft.client.renderer.StagedVertexBuffer.ExecuteInfo
Enclosing class:
StagedVertexBuffer

public static record StagedVertexBuffer.ExecuteInfo(GpuBuffer vertexBuffer, @Nullable GpuBuffer customIndexBuffer, IndexType indexType, int baseVertex, int firstIndex, int indexCount, PrimitiveTopology topology) extends Record
  • Field Details

    • vertexBuffer

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

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

      private final IndexType indexType
      The field for the indexType record component.
    • baseVertex

      private final int baseVertex
      The field for the baseVertex 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.
    • topology

      private final PrimitiveTopology topology
      The field for the topology record 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 a ExecuteInfo record class.
      Parameters:
      vertexBuffer - the value for the vertexBuffer record component
      customIndexBuffer - the value for the customIndexBuffer record component
      indexType - the value for the indexType record component
      baseVertex - the value for the baseVertex record component
      firstIndex - the value for the firstIndex record component
      indexCount - the value for the indexCount record component
      topology - the value for the topology record component
  • Method Details

    • indexBuffer

      public GpuBuffer indexBuffer()
    • 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.
    • vertexBuffer

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

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

      public IndexType indexType()
      Returns the value of the indexType record component.
      Returns:
      the value of the indexType record component
    • baseVertex

      public int baseVertex()
      Returns the value of the baseVertex record component.
      Returns:
      the value of the baseVertex 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
    • topology

      public PrimitiveTopology topology()
      Returns the value of the topology record component.
      Returns:
      the value of the topology record component