コード例 #1
0
        public override void Execute()
        {
            var job = new JobFactory <int, InflateDeformerFactory>
            {
                FactoryJob = new InflateDeformerFactory
                {
                    Envelope = Env,
                    Input    = VertexIn,
                    Output   = VertexOut
                }
            };

            job.Run();


            // var job = new JobParallelForFactory<int, InflateDeformerFactory>
            // {
            //     FactoryJob = new InflateDeformerFactory
            //     {
            //         Envelope = Env,
            //         Input = VertexIn,
            //         Output = VertexOut
            //     }
            // };
            // var dpt = job.Schedule(VertexIn.Length, 64);
            // dpt.Complete();
        }
コード例 #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();
     }
 }