Ejemplo n.º 1
0
 public void Init()
 {
     a = (Geometry.MinMaxAABB *)UnsafeUtility.Malloc(UnsafeUtility.SizeOf <Geometry.MinMaxAABB>() * 100000, UnsafeUtility.AlignOf <Geometry.MinMaxAABB>(), Allocator.Persistent);
     for (int i = 0; i < 100000; ++i)
     {
         a[i] = new Geometry.MinMaxAABB();
     }
 }
Ejemplo n.º 2
0
 public void Init()
 {
     rng = new Random(1);
     a   = (Geometry.MinMaxAABB *)UnsafeUtility.Malloc(UnsafeUtility.SizeOf <Geometry.MinMaxAABB>() * iterations, UnsafeUtility.AlignOf <Geometry.MinMaxAABB>(), Allocator.Persistent);
     for (int i = 0; i < iterations; ++i)
     {
         a[i] = new Geometry.MinMaxAABB();
     }
 }