-
I've looked at documentation and examples, but was neither able to confirm nor deny if what I'm trying to do is possible. I'd like to use a library to manage (array) allocation/deallocation within memory block provided by me, ideally with no exception-free error handling. The idea is to manage a memory-mapped region of GPU-backed buffer, allocating and deallocating memory for texture uploads on the fly. Is it possible with this library? FWIW, GPU mapping is not really relevant to what library needs to support, since it behaves like any other memory area allocated externally to this library. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
It sounds like you want |
Beta Was this translation helpful? Give feedback.
It sounds like you want
memory_pool
with a customBlockOrRawAllocator
. The easiest way is to use a very simpleBlockAllocator
like the one given in that example: https://memory.foonathan.net/md_doc_concepts.html#concept_blockallocator.