On Thu Nov 27 13:48:32 2025 +0000, Rémi Bernon wrote:
Why do we need a different pointer from vm_ptr?
With this implementation, we don’t need a separate pointer, but we do need a flag.
We could potentially do a bit better for cases where a buffer storage created with the persistent flag is then used with old-style maps. Technically, that would be more correct, but handling it would require working around issues such as `glMapBufferRange` not being supported on pinned memory. For now, I used the same code path that we use for Vulkan, but this representation would allow implementing that in the future.