public static unsafe void CheckStructWithNoAlias(ref NoAliasWithContentsStruct s)
 {
     // Since NoAliasWithContentsStruct has [NoAlias] on the struct definition, it cannot alias with any pointers within the struct.
     ExpectNotAliased(in s, s.ptr0);
     ExpectNotAliased(in s, s.ptr1);
 }
Ejemplo n.º 2
0
 public unsafe static void CheckStructWithNoAlias(ref NoAliasWithContentsStruct s)
 {
     // Since NoAliasWithContentsStruct has [NoAlias] on the struct definition, it cannot alias with any pointers within the struct.
     Unity.Burst.Aliasing.ExpectNoAlias(ref s, s.ptr0);
     Unity.Burst.Aliasing.ExpectNoAlias(ref s, s.ptr1);
 }