Beispiel #1
0
 public void AllocateAndAutoDispose <T>(ref NativeQueue <T> native, Allocator allocator) where T : struct
 {
     native = new NativeQueue <T>(allocator);
     EnqueueNative(new NativeQueueWrapper <T>(native), allocator);
 }
Beispiel #2
0
 public NativeQueueWrapper(NativeQueue <T> queue)
 {
     this.queue = queue;
 }