1

I don't know the aim of setting this bit when we map a buffer. We clearly know whether we're interested in the data in the buffer. So I think it is a bit flag indicating things to OpenGL. But, can we get any performance benefit from setting this bit?

3
  • 2
    I'm not 100% sure, but I think this flag states that the data doesn't need to be copied from the GPU memory to the host memory. This is useful when you only want to write to the mapped memory, but don't need to read the previous values. Commented Dec 23, 2024 at 20:49
  • @BDL When we want to read data from buffers, will OpenGL copy data in buffers from GPU's memory to CPU' memory? Commented Dec 24, 2024 at 2:30
  • 1
    Yes, it will copy the GPU memory to the CPU memory. GPU memory can't be read directly by the CPU, copying is the only way to access it. Commented Dec 24, 2024 at 9:27

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.