upload
Upload data into the buffer and return a slice.
Return
A com.mojang.blaze3d.buffers.GpuBufferSlice covering the uploaded region.
Parameters
data
Byte data to upload. Its java.nio.Buffer.remaining bytes are copied.
alignment
Byte alignment for the slice offset.