Struct Extensions_Collections.CopyToAndConvertJob<TSource, TTarget>
Copies items from one collection to another, converting values while copying.
Implements
IJobParallelFor
Inherited Members
Namespace: Fwt.Core
Assembly: fwt.core.dll
Syntax
public struct Extensions_Collections.CopyToAndConvertJob<TSource, TTarget> : IJobParallelFor where TSource : unmanaged where TTarget : unmanaged, IConvertableTo<TSource>
Type Parameters
| Name | Description |
|---|---|
| TSource | Type of source collection |
| TTarget | Type of target collection |
Fields
Source
Source collection to copy data from
Declaration
[ReadOnly]
public NativeArray<TSource> Source
Field Value
| Type | Description |
|---|---|
| NativeArray<TSource> |
Target
Target collection to copy data to
Declaration
[WriteOnly]
public NativeArray<TTarget> Target
Field Value
| Type | Description |
|---|---|
| NativeArray<TTarget> |
Methods
Execute(int)
Performs work against a specific iteration index.
Declaration
public void Execute(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The index of the Parallel for loop at which to perform work. |
Implements
Unity.Jobs.IJobParallelFor