Example #1
0
 public JobHandle CollectElementsToRead(out NativeList <int> batch2Read, out NativeCounter elementCount, Allocator allocator, JobHandle dependsOn = default)
 {
     batch2Read   = new NativeList <int>(BlockChainCount, allocator);
     elementCount = new NativeCounter(allocator);
     return(new CollectElementsToReadJob()
     {
         BlockChains = BlockChains,
         BatchIDs = batch2Read.AsParallelWriter(),
         ElementCounter = elementCount,
     }.ScheduleBatch(BlockChainCount, 4, dependsOn));
 }
Example #2
0
 public JobHandle CollectElementsToRead(out NativeList <int> batch2Read, out NativeCounter elementCount, Allocator allocator, JobHandle dependsOn = default)
 => mParallelBuffer.CollectElementsToRead(out batch2Read, out elementCount, allocator, dependsOn);