Firstborn/Library/PackageCache/com.unity.render-pipelines..../Runtime/Tiling/ReorderJob.cs
Schaken-Mods 9092858a58 updated to the latest editor
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
2023-05-07 17:43:11 -05:00

28 lines
575 B
C#

using Unity.Burst;
using Unity.Collections;
using Unity.Jobs;
using Unity.Mathematics;
namespace UnityEngine.Rendering.Universal
{
[BurstCompile]
struct ReorderJob<T> : IJobFor
where T : struct
{
[ReadOnly]
public NativeArray<int> indices;
[ReadOnly]
public NativeArray<T> input;
[NativeDisableParallelForRestriction]
public NativeArray<T> output;
public void Execute(int index)
{
var newIndex = indices[index];
output[newIndex] = input[index];
}
}
}