GLTRANSFORMFEEDBACKB(3G)

πŸ’… GLTRANSFORMFEEDBACKB

okay so literally the manual page name is GLTRANSFORMFEEDBACKB(3G) β€” the (3G) is the manual section bestie, that's the OpenGL one πŸŽ€ β€” and today we're learning how to glue a buffer object onto a transform feedback buffer object. it's giving binding energy ✨


✨ NAME ✨

glTransformFeedbackBufferBase β€” bind a buffer object to a transform feedback buffer object. that's the whole job. one job. she does it well πŸ’–


🌸 C SPECIFICATION 🌸

void glTransformFeedbackBufferBase(GLuint xfb, GLuint index,
                                   GLuint buffer);

look at her. three parameters. no notes. iconic. πŸ‘‘


πŸ¦‹ PARAMETERS πŸ¦‹

  • xfb β€” the name of the transform feedback buffer object. this is the one we're decorating bestie πŸ’…
  • index β€” the index of the binding point within xfb. like which little hook on the rack we're hanging this on.
  • buffer β€” the name of the buffer object to bind to that specified binding point. the actual thing being hung up πŸŽ€

πŸ’œ DESCRIPTION πŸ’œ

glTransformFeedbackBufferBase binds the buffer object buffer to the binding point at index index of the transform feedback object xfb. literally that's it. no cap. assignment complete. 🫢


🌈 NOTES 🌈

calling glTransformFeedbackBufferBase is equivalent to calling glTransformFeedbackBufferRange() with offset zero and size equal to the size of buffer. so like, same result, different outfit. iykyk ✨


πŸ”₯ ERRORS πŸ”₯

  • GL_INVALID_OPERATION is generated if xfb is not the name of an existing transform feedback object. (bestie that object does not exist 😭)
  • GL_INVALID_VALUE is generated if in buffer is not zero or the name of an existing buffer object. yeah the original says "if in buffer" β€” i'm not touching it, that's the canonical text, we respect the source in this house 🫑
  • GL_INVALID_VALUE is generated if index is greater than or equal to the number of transform feedback buffer binding points (that number is the value of GL_TRANSFORM_FEEDBACK_BUFFER_BINDING). out of range = no ❌

⭐ VERSION SUPPORT ⭐

so the original has a whole giant grid here, and since we're in a terminal we're doing it as a list. same facts, cuter delivery πŸ’–

which OpenGL versions support glTransformFeedbackBufferBase? brace yourself:

  • 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 β€” βœ”

so basically 4.5 only. she's a late bloomer and that's fine, she's thriving πŸŒΈπŸ‘‘


🧚 SEE ALSO 🧚

  • glBindBufferRange()
  • glBindBufferBase()
  • glTransformFeedbackBufferRange()

go read those too, they're the friend group 🫢


Copyright Β© 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 Β© 2014 Khronos Group


okay that's the whole page bestie, go forth and bind responsibly πŸ’…βœ¨

sign-off time πŸŽ€ β€” this one came from [FIXME: source] and it's dated 08/09/2021 πŸ¦‹ mwah, love u, bye πŸ’–

πŸ“¦ where this page comes from