Function Buffer.bindMemory

Bind a the buffer to a device memory

abstract void bindMemory (
  DeviceMemory mem,
  in const(ulong) offset
);

The buffer will use the memory allocated in the device memory starting at the specified offset in bytes, and spanning up to the offset + size member of memoryRequirments. The buffer keeps a reference to the device memory.