copyRawBytesToBuffer(rawBytes, toPtr, toOffset, nbytes) {
	        // Perhaps it would be more useful to use a staging buffer?
	        this.device.queue.writeBuffer(this.gpuBufferFromPtr(toPtr), toOffset, rawBytes, 0, nbytes);
	    }
Copy raw bytes into buffer ptr.

@param rawBytes The raw bytes
@param toPtr The target gpu buffer ptr
@param toOffset The beginning offset
@param nbytes Number of bytes