Ejemplo n.º 1
0
    public static JobHandle Begin(TransformAccessArray array, NativeArray <float3> positions, JobHandle dependency)
    {
        UpdateTransformsJob job = new UpdateTransformsJob()
        {
            Positions = positions
        };

        return(IJobParallelForTransformExtensions.Schedule(job, array, dependency));
    }
Ejemplo n.º 2
0
        public static JobHandle Begin(
            NativeArray <ShockwaveData> cells,
            TransformAccessArray transforms,
            JobHandle dependency
            )
        {
            ShockReactionJob job = new ShockReactionJob()
            {
                Cells = cells
            };

            return(IJobParallelForTransformExtensions.Schedule(job, transforms, dependency));
        }
Ejemplo n.º 3
0
        public static JobHandle Begin(
            SinusoidalMasterParams master,
            TransformAccessArray transforms
            )
        {
            SinusoidalTilesJob job = new SinusoidalTilesJob()
            {
                time   = Time.realtimeSinceStartup,
                Params = master
            };

            return(IJobParallelForTransformExtensions.Schedule(job, transforms));
        }
Ejemplo n.º 4
0
    public static JobHandle Begin(
        TransformAccessArray transformArray,
        NativeArray <float3> positions,
        JobHandle priorJob
        )
    {
        var job = new NoiseSceneUpdateJob()
        {
            Positions = positions
        };

        return(IJobParallelForTransformExtensions.Schedule(job, transformArray, priorJob));
    }