We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I want to use glMapBufferRange to modify the contents of a sub-buffer, which may currently be in use by the GPU。
Which flags should be used for marking? Would GL_MAP_INVALIDATE_RANGE_BIT | GL_MAP_UNSYNCHRONIZED_BIT | GL_MAP_WRITE_BIT be appropriate?
Additionally, could you provide a more detailed explanation of the purpose of GL_MAP_INVALIDATE_RANGE_BIT?
Ref: registry.khronos.org/.../glMapBufferRange.xhtml