public void UpdateJobsGerstnerCache(AsyncGPUReadbackRequest request) { NativeArray <ushort> resultData = request.GetData <ushort>(); NativeArray <ushort> data = new NativeArray <ushort>(resultData, Allocator.Temp); ShapeGerstnerJobs.AddNewOceanDepthCache(this, data); data.Dispose(); }