internal static unsafe void Initialize() { if (jobReflectionData.Data == IntPtr.Zero) { jobReflectionData.Data = JobsUtility.CreateJobReflectionData(typeof(T), (ExecuteJobFunction)Execute); } }
public static IntPtr Initialize(bool asParallel) { if (jobReflectionData == IntPtr.Zero) { jobReflectionData = JobsUtility.CreateJobReflectionData(typeof(T), JobType.ParallelFor, (ExecuteJobFunction)Execute); } return(jobReflectionData); }
public static IntPtr Initialize() { if (s_jobReflectionData == IntPtr.Zero) { s_jobReflectionData = JobsUtility.CreateJobReflectionData(typeof(void), typeof(void), (ExecuteJobFunction)Execute); } return(s_jobReflectionData); }
public static IntPtr Initialize() { if (s_JobReflectionData == IntPtr.Zero) { s_JobReflectionData = JobsUtility.CreateJobReflectionData(typeof(TOutput), JobType.Single, (ExecuteJobFunction)Execute); } return(s_JobReflectionData); }
public static IntPtr Initialize() { if (jobReflectionData == IntPtr.Zero) { jobReflectionData = JobsUtility.CreateJobReflectionData(typeof(JobDataWithInt <T>), JobType.Single, (ExecuteJobWithIndexFunction)Execute); } return(jobReflectionData); }
public static IntPtr Initialize() { if (jobReflectionData == IntPtr.Zero) { jobReflectionData = JobsUtility.CreateJobReflectionData(typeof(JobMultiHashMap), typeof(TJob), JobType.ParallelFor, (ExecuteJobFunction)Execute); } return(jobReflectionData); }
public static System.IntPtr Initialize() { if (jobReflectionData == System.IntPtr.Zero) { jobReflectionData = JobsUtility.CreateJobReflectionData(typeof(T), new ExecuteJobFunction(Execute)); } return(jobReflectionData); }
internal static IntPtr Initialize() { if (s_JobReflectionData == IntPtr.Zero) { s_JobReflectionData = JobsUtility.CreateJobReflectionData(typeof(JobNativeMultiHashMapMergedSharedKeyIndicesProducer <TJob>), typeof(TJob), (ExecuteJobFunction)Execute); } return(s_JobReflectionData); }
internal static IntPtr Initialize() { if (jobReflectionData == IntPtr.Zero) { jobReflectionData = JobsUtility.CreateJobReflectionData(typeof(NativeMultiHashMapUniqueHashJobStruct <TJob>), typeof(TJob), JobType.ParallelFor, (ExecuteJobFunction)Execute); } return(jobReflectionData); }
public static IntPtr Initialize() { if (s_JobReflectionData == IntPtr.Zero) { s_JobReflectionData = JobsUtility.CreateJobReflectionData(typeof(JobStruct <T, U0>), typeof(T), JobType.ParallelFor, (ExecuteJobFunction)Execute); } return(s_JobReflectionData); }
public static void Initialize(out void *jobReflectionData) { if (s_JobReflectionData == null) { s_JobReflectionData = (void *)JobsUtility.CreateJobReflectionData(typeof(TUpdate), JobType.Single, (ExecuteJobFunction)Execute); } jobReflectionData = s_JobReflectionData; }
public static IntPtr Initialize() { if (jobReflectionData == IntPtr.Zero) { jobReflectionData = JobsUtility.CreateJobReflectionData(typeof(CollisionEventJobData <T>), typeof(T), JobType.Single, (ExecuteJobFunction)Execute); } return(jobReflectionData); }
public static unsafe JobsUtility.ReflectionDataProxy *Initialize() { if (s_JobReflectionData == null) { s_JobReflectionData = (JobsUtility.ReflectionDataProxy *)JobsUtility.CreateJobReflectionData(typeof(void), typeof(void), JobType.ParallelFor, (ExecuteJobFunction)Execute); } return(s_JobReflectionData); }
public static IntPtr Initialize() { bool flag = ParticleSystemJobStruct <T> .jobReflectionData == IntPtr.Zero; if (flag) { ParticleSystemJobStruct <T> .jobReflectionData = JobsUtility.CreateJobReflectionData(typeof(T), new ParticleSystemJobStruct <T> .ExecuteJobFunction(ParticleSystemJobStruct <T> .Execute), null, null); } return(ParticleSystemJobStruct <T> .jobReflectionData); }
public static unsafe JobsUtility.ReflectionDataProxy *Initialize() { if (s_JobReflectionData == null) { s_JobReflectionData = (JobsUtility.ReflectionDataProxy *)JobsUtility.CreateJobReflectionData(typeof(JobProducer <T>), typeof(T), JobType.Single, (ExecuteJobFunction)Execute); } return(s_JobReflectionData); }
public static IntPtr Initialize() { bool flag = IJobForExtensions.ForJobStruct <T> .jobReflectionData == IntPtr.Zero; if (flag) { IJobForExtensions.ForJobStruct <T> .jobReflectionData = JobsUtility.CreateJobReflectionData(typeof(T), new IJobForExtensions.ForJobStruct <T> .ExecuteJobFunction(IJobForExtensions.ForJobStruct <T> .Execute), null, null); } return(IJobForExtensions.ForJobStruct <T> .jobReflectionData); }
public static IntPtr GetJobReflectionData() { bool flag = ProcessAnimationJobStruct <T> .jobReflectionData == IntPtr.Zero; if (flag) { ProcessAnimationJobStruct <T> .jobReflectionData = JobsUtility.CreateJobReflectionData(typeof(T), new ProcessAnimationJobStruct <T> .ExecuteJobFunction(ProcessAnimationJobStruct <T> .Execute), null, null); } return(ProcessAnimationJobStruct <T> .jobReflectionData); }
public static IntPtr GetJobReflectionData() { if (jobReflectionData == IntPtr.Zero) { jobReflectionData = JobsUtility.CreateJobReflectionData( typeof(T), (ExecuteJobFunction)Execute); } return(jobReflectionData); }
public static IntPtr Initialize() { if (jobReflectionData == IntPtr.Zero) { // @TODO: Use parallel for job... (Need to expose combine jobs) jobReflectionData = JobsUtility.CreateJobReflectionData(typeof(JobDataWithFiltering), typeof(T), JobType.Single, (ExecuteJobFunction)Execute); } return(jobReflectionData); }
public static void Initialize() { if (jobReflectionData.Data == IntPtr.Zero) { #if UNITY_2020_2_OR_NEWER || UNITY_DOTSRUNTIME jobReflectionData.Data = JobsUtility.CreateJobReflectionData(typeof(T), (ExecuteJobFunction)Execute); #else jobReflectionData.Data = JobsUtility.CreateJobReflectionData(typeof(T), JobType.Single, (ExecuteJobFunction)Execute); #endif } }
internal static IntPtr InitializeSingle() { #if UNITY_2020_2_OR_NEWER && !UNITY_DOTSRUNTIME return(InitializeParallel()); #else if (s_JobReflectionDataSingle == IntPtr.Zero) { s_JobReflectionDataSingle = JobsUtility.CreateJobReflectionData(typeof(JobEntityBatchWrapper <T>), typeof(T), JobType.Single, (ExecuteJobFunction)Execute); } return(s_JobReflectionDataSingle); #endif }
public static IntPtr Initialize() { // IJobParallelFor uses JobType.ParallelFor instead of Single if (jobReflectionData == IntPtr.Zero) { jobReflectionData = JobsUtility.CreateJobReflectionData( typeof(T), JobType.ParallelFor, (ExecuteJobFunction)Execute); } return(jobReflectionData); }
public static IntPtr GetJobReflectionData() { if (jobReflectionData == IntPtr.Zero) { jobReflectionData = JobsUtility.CreateJobReflectionData( typeof(T), JobType.Single, (ExecuteJobFunction)ExecuteProcessParticleSystem); } return(jobReflectionData); }
public static IntPtr Initialize() { if (jobReflectionData == IntPtr.Zero) { #if UNITY_2020_2_OR_NEWER jobReflectionData = JobsUtility.CreateJobReflectionData(typeof(CollisionEventJobData <T>), typeof(T), (ExecuteJobFunction)Execute); #else jobReflectionData = JobsUtility.CreateJobReflectionData(typeof(CollisionEventJobData <T>), typeof(T), JobType.Single, (ExecuteJobFunction)Execute); #endif } return(jobReflectionData); }
public static IntPtr Initialize() { if (jobReflectionData == IntPtr.Zero) { #if UNITY_2020_2_OR_NEWER jobReflectionData = JobsUtility.CreateJobReflectionData(typeof(T), (ExecuteJobFunction)Execute, null, null); #else jobReflectionData = JobsUtility.CreateJobReflectionData(typeof(T), JobType.ParallelFor, (ExecuteJobFunction)Execute); #endif } return(jobReflectionData); }
internal static IntPtr Initialize() { if (s_JobReflectionData == IntPtr.Zero) { #if UNITY_2020_2_OR_NEWER s_JobReflectionData = JobsUtility.CreateJobReflectionData(typeof(JobNativeMultiHashMapMergedSharedKeyIndicesProducer <TJob>), typeof(TJob), (ExecuteJobFunction)Execute); #else s_JobReflectionData = JobsUtility.CreateJobReflectionData(typeof(JobNativeMultiHashMapMergedSharedKeyIndicesProducer <TJob>), typeof(TJob), JobType.ParallelFor, (ExecuteJobFunction)Execute); #endif } return(s_JobReflectionData); }
public static IntPtr Initialize() { if (s_JobReflectionData == IntPtr.Zero) { s_JobReflectionData = JobsUtility.CreateJobReflectionData( typeof(EventReceiverJobData <TJob, TEvent>), typeof(TJob), JobType.Single, (ExecuteDelegate)Execute); } return(s_JobReflectionData); }
public static IntPtr InitializeParallel() { if (s_JobReflectionDataParallel == IntPtr.Zero) { s_JobReflectionDataParallel = JobsUtility.CreateJobReflectionData( typeof(JobEntityBatchWrapper <T>), typeof(T), JobType.ParallelFor, (ExecuteJobFunction)Execute); } return(s_JobReflectionDataParallel); }
public static IntPtr InitializeSingle() { if (s_JobReflectionDataSingle == IntPtr.Zero) { s_JobReflectionDataSingle = JobsUtility.CreateJobReflectionData( typeof(JobEntityBatchWrapper <T>), typeof(T), JobType.Single, (ExecuteJobFunction)Execute); } return(s_JobReflectionDataSingle); }
internal static IntPtr Initialize() { if (s_JobReflectionData == IntPtr.Zero) { s_JobReflectionData = JobsUtility.CreateJobReflectionData(typeof(JobNativeMultiHashMapVisitKeyValueProducer <TJob, TKey, TValue>), typeof(TJob), #if !UNITY_2020_2_OR_NEWER JobType.ParallelFor, #endif (ExecuteJobFunction)Execute); } return(s_JobReflectionData); }