enqueueWriteBuffer argument validation