createTransferBuffer

Creates an upload staging buffer of sizeInBytes bytes.

Throws

if it cannot be allocated.