public override void Execute() { // var job = new JobFactory<int, DeformerNoiseFactory> // { // FactoryJob = new DeformerNoiseFactory // { // Envelope = Env, // Input = VertexIn, // Output = VertexOut // } // }; // job.Run(); var job = new JobParallelForFactory <int, DeformerNoiseFactory> { FactoryJob = new DeformerNoiseFactory { Envelope = Env, Input = VertexIn, Output = VertexOut } }; JobHandle dpt = job.Schedule(VertexOut.Length, 64); dpt.Complete(); }
public override void Execute() { if (!isMulti) { var job = new JobFactory <int, DeformerNoiseFactoryMT> { FactoryJob = new DeformerNoiseFactoryMT { Envelope = Env, Input = VertexIn, Output = VertexOut } }; job.Run(); } else { var job = new JobParallelForFactory <int, DeformerNoiseFactoryMT> { FactoryJob = new DeformerNoiseFactoryMT { Envelope = Env, Input = VertexIn, Output = VertexOut } }; JobHandle dpt = job.Schedule(VertexOut.Length, 64); dpt.Complete(); } }