This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using Unity.Burst; | |
using Unity.Collections; | |
using Unity.Collections.LowLevel.Unsafe; | |
using System.Threading; | |
public unsafe struct NativeXorshift64 { | |
[NativeDisableUnsafePtrRestriction] | |
public ulong *y; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Unity.Burst; | |
using Unity.Collections; | |
using Unity.Collections.LowLevel.Unsafe; | |
using Unity.Jobs.LowLevel.Unsafe; | |
using System.Threading; | |
[NativeContainer] | |
[NativeContainerIsAtomicWriteOnly] | |
public unsafe struct NativeXorshift64CASFree { | |
private const int LongsPerCacheLine = JobsUtility.CacheLineSize / sizeof(long); |
OlderNewer