Click or drag to resize

JobsUtilities Class

Methods to make it easier to work with Unity's new Jobs system and Native types.
Inheritance Hierarchy
SystemObject
  DustProductions.CoreJobsUtilities

Namespace:  DustProductions.Core
Assembly:  DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static class JobsUtilities

The JobsUtilities type exposes the following members.

Methods
  NameDescription
Public methodStatic memberGetOptimalBatchCountForProcessorCount
Determines how to distribute a job based on the desired minimum items to run per job and logical cpu cores available to the .NET runtime.
Public methodStatic memberGetOptimalBatchCountForProcessorsT
Determines how to distribute a job based on the desired minimum items to run per job and logical cpu cores available to the .NET runtime.
Public methodStatic memberTryAddValuesFromColor
Add the values of r, g, b, a from a Color to a NativeArray.
Public methodStatic memberTryAddValuesFromColors
Add the values of r, g, b, a from an array of Colors to a NativeArray.
Public methodStatic memberTryAddValuesFromVector3
Add the values of x, y, and z from a Vector3 to a NativeArray.
Public methodStatic memberTryAddValuesFromVector3s
Add the values of x, y, and z from an array of Vector3s to a NativeArray.
Public methodStatic memberTryDeallocateT
Disposes of a NativeArray if it has been created.
Public methodStatic memberTrySplitColorsIntoNativeArrays
Take an array of Colors and try to split it into 4 NativeArrays for r, g, b, and a values.
Public methodStatic memberTrySplitVector3sIntoNativeArrays
Take an array of Vector3s and try to split it into 3 NativeArrays for x, y, and z values.
Top
See Also