mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-23 19:36:18 -05:00
24 lines
540 B
C#
24 lines
540 B
C#
using Unity.Collections;
|
|
using UnityEngine.Jobs;
|
|
using UniGLTF.SpringBoneJobs.Blittables;
|
|
#if ENABLE_SPRINGBONE_BURST
|
|
using Unity.Burst;
|
|
#endif
|
|
|
|
namespace UniGLTF.SpringBoneJobs
|
|
{
|
|
|
|
#if ENABLE_SPRINGBONE_BURST
|
|
[BurstCompile]
|
|
#endif
|
|
public struct PullTransformJob : IJobParallelForTransform
|
|
{
|
|
[WriteOnly] public NativeArray<BlittableTransform> Transforms;
|
|
|
|
public void Execute(int index, TransformAccess transform)
|
|
{
|
|
Transforms[index] = new BlittableTransform(transform);
|
|
}
|
|
}
|
|
}
|
|
|