Class TransferList
java.lang.Object
dev.engine_room.flywheel.backend.engine.indirect.TransferList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()longdstOffset(int index) booleanisEmpty()intlength()voidpush(int vbo, long srcOffset, long dstOffset, long size) Append a transfer to the end of the list, combining with the last transfer if possible.voidreset()Reset the list to be empty.longsize(int index) longsrcOffset(int index) intvbo(int index)
-
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:
trueif there are no transfers in the list,falseotherwise.
-
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()
-