Esempio n. 1
0
            /// <inheritdoc />
            public void Clear()
            {
                _freeRegionCount     = 1;
                _totalFreeRegionSize = Size;
                _regions.Clear();

                var region = new GraphicsMemoryBlockRegion(
                    Block,
                    Size,
                    offset: 0,
                    alignment: 1,
                    GraphicsMemoryBlockRegionKind.Free
                    );
                var regionNode = _regions.AddFirst(region);

                _freeRegionsBySize.Clear();
                _freeRegionsBySize.Add(regionNode);
            }
 /// <inheritdoc cref="GraphicsMemoryBlock.TryAllocate(ulong, ulong, out GraphicsMemoryBlockRegion)" />
 bool TryAllocate(ulong size, ulong alignment, out GraphicsMemoryBlockRegion region);