コード例 #1
0
        private static IntPtr GetReflectionData <T>()
            where T : struct, IJobParallelForTransform
        {
            TransformParallelForLoopStruct <T> .Initialize();

            var reflectionData = TransformParallelForLoopStruct <T> .jobReflectionData.Data;

            CheckReflectionDataCorrect(reflectionData);
            return(reflectionData);
        }
コード例 #2
0
        unsafe static public JobHandle Schedule <T>(this T jobData, TransformAccessArray transforms, JobHandle dependsOn = new JobHandle()) where T : struct, IJobParallelForTransform
        {
            var scheduleParams = new JobsUtility.JobScheduleParameters(UnsafeUtility.AddressOf(ref jobData), TransformParallelForLoopStruct <T> .Initialize(), dependsOn, ScheduleMode.Batched);

            return(JobsUtility.ScheduleParallelForTransform(ref scheduleParams, transforms.GetTransformAccessArrayForSchedule()));
        }
 public static JobHandle Schedule <T>(this T jobData, EudiReplicaTransformAccessArray transforms, JobHandle dependsOn = default(JobHandle)) where T : struct, IEudiReplicaJobParallelForTransform
 {
     JobsUtility.JobScheduleParameters parameters = new JobsUtility.JobScheduleParameters(UnsafeUtility.AddressOf <T>(ref jobData), TransformParallelForLoopStruct <T> .Initialize(), dependsOn, ScheduleMode.Batched);
     return(JobsUtility.ScheduleParallelForTransform(ref parameters, transforms.GetTransformAccessArrayForSchedule()));
 }
コード例 #4
0
 public static void EarlyJobInit <T>()
     where T : struct, IJobParallelForTransform
 {
     TransformParallelForLoopStruct <T> .Initialize();
 }
コード例 #5
0
 public static unsafe void RunReadOnly <T>(this T jobData, TransformAccessArray transforms) where T : struct, IJobParallelForTransform
 {
     var scheduleParams = new JobsUtility.JobScheduleParameters(UnsafeUtility.AddressOf(ref jobData), TransformParallelForLoopStruct <T> .Initialize(), default, ScheduleMode.Run);