pcwalton / offset-allocator

A port of Sebastian Aaltonen's `OffsetAllocator` to Rust

Repository from Github https://github.compcwalton/offset-allocatorRepository from Github https://github.compcwalton/offset-allocator

Allocation Alignment

cwfitzgerald opened this issue · comments

It would be useful to allow allocation to happen at a given alignement.

If you want to allocate a range that is compatible with a dynamic offset, for example, or for using for splitting up a ID3D12Heap. You can do this today by overallocating alignment bytes, but when alignment is 64KB, it's not great.