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();
        }
Example #2
0
 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();
     }
 }