Why allocateHandle returns offset shifted by MIN_ALIGNMENT_SHIFT? #3550
michaeltheprogrammer1
started this conversation in
General
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am investigating backend API and my mind has just got stuck at memory management for graphics handles. In general, I understand how arena and allocator, and free list, etc. work. I don't understand why
HandleBase::HandleId OpenGLDriver::allocateHandle(size_t size)
returnsoffset
shifted byMIN_ALIGNMENT_SHIFT
, though. And why it cannot just returnaddr
.whole function:
Beta Was this translation helpful? Give feedback.
All reactions