Exemplo n.º 1
0
        static public ClearToValueAllocator New <T>(byte ClearValue, ref T parent) where T : unmanaged, AllocatorManager.IAllocator
        {
            var temp = new ClearToValueAllocator();

            temp.m_parent     = parent.Handle;
            temp.m_clearValue = ClearValue;
#if ENABLE_UNITY_COLLECTIONS_CHECKS
            AllocatorManager.Register(ref temp);
            parent.Handle.AddChildAllocator(temp.m_handle);
#endif
            return(temp);
        }