createBuffer

Creates a buffer of sizeInBytes bytes for usage.

Throws

if the GPU cannot allocate it.