#if GRIFFIN using UnityEngine; using System.Collections; using System.Collections.Generic; using System; using Unity.Collections; namespace Pinwheel.Griffin.Rendering { internal class GTreeNativeData : IDisposable { internal NativeArray instances; internal NativeArray prototypeIndices; internal NativeArray trs; internal NativeArray cullResults; public GTreeNativeData(List trees) { instances = new NativeArray(trees.ToArray(), Allocator.Persistent); prototypeIndices = new NativeArray(trees.Count, Allocator.Persistent); GUtilities.Fill(prototypeIndices, -1); trs = new NativeArray(trees.Count, Allocator.Persistent); cullResults = new NativeArray(trees.Count, Allocator.Persistent); } public void Dispose() { GNativeArrayUtilities.Dispose(instances); GNativeArrayUtilities.Dispose(prototypeIndices); GNativeArrayUtilities.Dispose(trs); GNativeArrayUtilities.Dispose(cullResults); } } } #endif