Call prepare before mapDeviceMemoryWithIndex?