public void Reset() { if (disposed) { DisposeHelper.NotifyDisposedUsed(this); return; } m_Allocator = new BestFitAllocator((uint)m_Length); UIRUtility.Destroy(m_Atlas); m_RawAtlas = new RawTexture(); MustCommit = false; }
public void Reset() { bool disposed = this.disposed; if (disposed) { DisposeHelper.NotifyDisposedUsed(this); } else { this.m_Allocator = new BestFitAllocator((uint)this.m_Length); UIRUtility.Destroy(this.m_Atlas); this.m_RawAtlas = default(GradientSettingsAtlas.RawTexture); this.MustCommit = false; } }
public GPUBufferAllocator(uint maxSize) { m_Low = new BestFitAllocator(maxSize); m_High = new BestFitAllocator(maxSize); }
public BestFitAllocator allocator; // Allocates vertically within the area public Area(RectInt rect) { this.rect = rect; allocator = new BestFitAllocator((uint)rect.height); }