java.lang.Object
dev.engine_room.flywheel.backend.engine.indirect.TransferList

public class TransferList extends Object
  • Constructor Details

    • TransferList

      public TransferList()
  • Method Details

    • push

      public void push(int vbo, long srcOffset, long dstOffset, long size)
      Append a transfer to the end of the list, combining with the last transfer if possible.
      Parameters:
      vbo - The VBO to transfer to.
      srcOffset - The offset in the staging buffer.
      dstOffset - The offset in the VBO.
      size - The size of the transfer.
    • length

      public int length()
      Returns:
      The number of transfers in the list.
    • isEmpty

      public boolean isEmpty()
      Returns:
      true if there are no transfers in the list, false otherwise.
    • reset

      public void reset()
      Reset the list to be empty.
    • vbo

      public int vbo(int index)
    • srcOffset

      public long srcOffset(int index)
    • dstOffset

      public long dstOffset(int index)
    • size

      public long size(int index)
    • delete

      public void delete()