You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
900 B
C#

using LanLib.UpdateManager.Jobs.Internal;
using UnityEngine.Jobs;
namespace LanLib.UpdateManager.Jobs
{
public struct UpdateTransformJob<TData> : IInternalUpdateTransformJob<TData>
where TData : struct, IUpdateTransformJob
{
public UnsafeNativeList<TData> Data { get; set; }
public unsafe void Execute(int index, TransformAccess transform)
{
Data.ItemRefAt(index).Execute(transform);
}
}
#if HAVE_BURST
[Unity.Burst.BurstCompile]
#endif
public struct BurstUpdateTransformJob<TData> : IInternalUpdateTransformJob<TData>, IInternalBurstUpdateTransformJob
where TData : struct, IUpdateTransformJob
{
public UnsafeNativeList<TData> Data { get; set; }
public unsafe void Execute(int index, TransformAccess transform)
{
Data.ItemRefAt(index).Execute(transform);
}
}
}