Class JobsUtility
Syntax
public static class JobsUtility
Fields
CacheLineSize
Declaration
public const int CacheLineSize = 64
Field Value
MaxJobThreadCount
Declaration
public const int MaxJobThreadCount = 128
Field Value
Properties
IsExecutingJob
Declaration
public static bool IsExecutingJob { get; }
Property Value
JobCompilerEnabled
Declaration
public static bool JobCompilerEnabled { get; }
Property Value
JobDebuggerEnabled
Declaration
public static bool JobDebuggerEnabled { get; }
Property Value
JobWorkerCount
Declaration
public static int JobWorkerCount { get; }
Property Value
Methods
CheckFenceIsDependencyOrDidSyncFence(ref JobHandle, ref JobHandle)
Declaration
public static bool CheckFenceIsDependencyOrDidSyncFence(ref JobHandle dependency, ref JobHandle dependsOn)
Parameters
Returns
CreateJobReflectionData(Type, Delegate, Delegate, JobsUtility.ManagedJobForEachDelegate, JobsUtility.ManagedJobDelegate, Int32, JobsUtility.ManagedJobMarshalDelegate)
Declaration
public static IntPtr CreateJobReflectionData(Type type, Delegate executeDelegate, Delegate cleanupDelegate = null, JobsUtility.ManagedJobForEachDelegate codegenExecuteDelegate = null, JobsUtility.ManagedJobDelegate codegenCleanupDelegate = null, int codegenUnmanagedJobSize = -1, JobsUtility.ManagedJobMarshalDelegate codegenMarshalToBurstDelegate = null)
Parameters
Returns
CreateJobReflectionData(Type, Type, Delegate, Delegate, JobsUtility.ManagedJobForEachDelegate, JobsUtility.ManagedJobDelegate, Int32, JobsUtility.ManagedJobMarshalDelegate)
Declaration
public static IntPtr CreateJobReflectionData(Type type, Type _, Delegate executeDelegate, Delegate cleanupDelegate = null, JobsUtility.ManagedJobForEachDelegate codegenExecuteDelegate = null, JobsUtility.ManagedJobDelegate codegenCleanupDelegate = null, int codegenUnmanagedJobSize = -1, JobsUtility.ManagedJobMarshalDelegate codegenMarshalToBurstDelegate = null)
Parameters
Returns
CreateJobReflectionData(Type, Type, JobType, Delegate, Delegate, JobsUtility.ManagedJobForEachDelegate, JobsUtility.ManagedJobDelegate, Int32, JobsUtility.ManagedJobMarshalDelegate)
Declaration
public static IntPtr CreateJobReflectionData(Type type, Type _, JobType jobType, Delegate executeDelegate, Delegate cleanupDelegate = null, JobsUtility.ManagedJobForEachDelegate codegenExecuteDelegate = null, JobsUtility.ManagedJobDelegate codegenCleanupDelegate = null, int codegenUnmanagedJobSize = -1, JobsUtility.ManagedJobMarshalDelegate codegenMarshalToBurstDelegate = null)
Parameters
Returns
GetDefaultIndicesPerPhase(Int32)
Declaration
public static int GetDefaultIndicesPerPhase(int arrayLength)
Parameters
Type |
Name |
Description |
Int32 |
arrayLength |
|
Returns
GetWorkStealingRange(ref JobRanges, Int32, out Int32, out Int32)
Declaration
public static bool GetWorkStealingRange(ref JobRanges ranges, int jobIndex, out int begin, out int end)
Parameters
Returns
Initialize()
Declaration
public static void Initialize()
IsCompleted(ref JobHandle)
Declaration
public static bool IsCompleted(ref JobHandle jobHandle)
Parameters
Returns
IsMainThread()
Declaration
public static bool IsMainThread()
Returns
PatchBufferMinMaxRanges(IntPtr, Void*, Int32, Int32)
Declaration
public static JobsUtility.MinMax PatchBufferMinMaxRanges(IntPtr bufferRangePatchData, void *jobdata, int startIndex, int rangeSize)
Parameters
Returns
Schedule(ref JobsUtility.JobScheduleParameters)
Declaration
public static JobHandle Schedule(ref JobsUtility.JobScheduleParameters parameters)
Parameters
Returns
ScheduleBatchedJobsAndComplete(ref JobHandle)
Declaration
public static void ScheduleBatchedJobsAndComplete(ref JobHandle jobHandle)
Parameters
Declaration
public static JobHandle ScheduleJob(IntPtr jobFuncPtr, JobMetaData*jobDataPtr, JobHandle dependsOn)
Parameters
Returns
Declaration
public static JobHandle ScheduleJobParallelFor(IntPtr jobFuncPtr, IntPtr jobCompletionFuncPtr, JobMetaData*jobDataPtr, int arrayLength, int innerloopBatchCount, JobHandle dependsOn)
Parameters
Returns
ScheduleParallelFor(ref JobsUtility.JobScheduleParameters, Int32, Int32)
Declaration
public static JobHandle ScheduleParallelFor(ref JobsUtility.JobScheduleParameters parameters, int arrayLength, int innerloopBatchCount)
Parameters
Returns
ScheduleParallelForDeferArraySize(ref JobsUtility.JobScheduleParameters, Int32, Void*, Void*)
Declaration
public static JobHandle ScheduleParallelForDeferArraySize(ref JobsUtility.JobScheduleParameters parameters, int innerloopBatchCount, void *getInternalListDataPtrUnchecked, void *atomicSafetyHandlePtr)
Parameters
Returns
Shutdown()
Declaration
public static void Shutdown()