|
|
|
|
|
|
using System; |
|
|
|
using System.Runtime.CompilerServices; |
|
|
|
using Unity.Collections.LowLevel.Unsafe; |
|
|
|
using Unity.Jobs; |
|
|
|
using UnityEngine.Experimental.Perception.Randomization.Scenarios; |
|
|
|
|
|
|
|
|
|
|
[BurstCompile] |
|
|
|
struct SampleJob : IJobParallelForBatch |
|
|
|
{ |
|
|
|
[ReadOnly] |
|
|
|
public NativeArray<float> integratedCurve; |
|
|
|
public float interval; |
|
|
|
public float startTime; |
|
|
|
|
|
|
var endIndex = startIndex + count; |
|
|
|
var batchIndex = startIndex / SamplerUtility.samplingBatchSize; |
|
|
|
var rng = new Unity.Mathematics.Random(SamplerUtility.IterateSeed((uint)batchIndex, seed)); |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|