GLINVALIDATEBUFFERDA(3G)

✨ NAME ✨

okay so this page is GLINVALIDATEBUFFERDA(3G), and the function is glInvalidateBufferData. Its whole job is invalidating the content of a buffer object’s data store. No cap. πŸ’…

🌸 C SPECIFICATION 🌸

void glInvalidateBufferData(GLuint buffer);

πŸŽ€ PARAMETERS πŸŽ€

  • buffer β€” the name of a buffer object whose data store to invalidate. That’s the vibe, bestie.

πŸ’– DESCRIPTION πŸ’–

glInvalidateBufferData invalidates all of the content of the data store of a buffer object. After invalidation, the content of the buffer’s data store becomes undefined β€” like, do not trust it, do not expect your old data back, it’s giving β€œno thoughts, head empty” 😭.

πŸ”₯ ERRORS πŸ”₯

  • GL_INVALID_VALUE is generated if buffer is not the name of an existing buffer object. Basically if you made up a buffer name, GL is like β€œwho is she?” πŸ’€
  • GL_INVALID_OPERATION is generated if any part of buffer is currently mapped. Mapped buffer + invalidation = nope, not today.

πŸ¦‹ ASSOCIATED GETS πŸ¦‹

  • glGetBufferParameter() with argument GL_BUFFER_SIZE β€” that’s the getter bff you’d use here.

🌈 VERSION SUPPORT 🌈

The original had a whole table, and since we’re not doing tables, here’s the exact tea in list form. Function / Feature Name: glInvalidateBufferData. Across the OpenGL versions:

  • OpenGL 2.0: -
  • OpenGL 2.1: -
  • OpenGL 3.0: -
  • OpenGL 3.1: -
  • OpenGL 3.2: -
  • OpenGL 3.3: -
  • OpenGL 4.0: -
  • OpenGL 4.1: -
  • OpenGL 4.2: -
  • OpenGL 4.3: βœ”
  • OpenGL 4.4: βœ”
  • OpenGL 4.5: βœ”

πŸ‘‘ SEE ALSO πŸ‘‘

The original literally lists these bad girls: glInvalidateTexSubImage(),, glInvalidateTexImage(), glInvalidateBufferSubData(), glInvalidateFramebuffer(), glInvalidateSubFramebuffer(). Yes, the double comma is in the original, and we are preserving it because details are sacred 🫢.

Copyright Β© 2013-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.

Copyright Β© 2013-2014 Khronos Group


ok bye bestie πŸ’… this page is from [FIXME: source], dated 08/09/2021, and the manual tag is GLINVALIDATEBUFFERDA(3G). slay, stay invalidated ✨

πŸ“¦ where this page comes from