浏览代码

inlined iterateSeed code

/main
Steven Leal 4 年前
当前提交
7e84dd5e
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 3
      com.unity.perception/Runtime/Randomization/Samplers/SamplerUtility.cs

3
com.unity.perception/Runtime/Randomization/Samplers/SamplerUtility.cs


[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static uint IterateSeed(uint index, uint baseSeed)
{
var seedLeftSide = (ulong)index << 32;
return (uint)Hash64(seedLeftSide | baseSeed) << 1 | 1u;
return (uint)Hash64((ulong)index << 32 | baseSeed) << 1 | 1u;
}
/// <summary>

正在加载...
取消
保存