GLTRANSFORMFEEDBACKV(3G)
π GLTRANSFORMFEEDBACKV(3G) π
okay bestie, this is the 3G manual page for glTransformFeedbackVaryings, and itβs giving full transform-feedback main character energy. The manual slot is literally [FIXME: manual], and yes, weβre folding that in up top like a proper header moment. π
πΈ NAME πΈ
glTransformFeedbackVaryings β specify values to record in transform feedback buffers. slay, thatβs the whole vibe.
β¨ C SPECIFICATION β¨
void glTransformFeedbackVaryings(GLuint program, GLsizei count,
const char **varyings,
GLenum bufferMode);
π PARAMETERS π
programβ the name of the target program object.countβ the number of varying variables used for transform feedback.varyingsβ an array ofcountzero-terminated strings specifying the names of the varying variables to use for transform feedback.bufferModeβ identifies the mode used to capture the varying variables when transform feedback is active.bufferModemust beGL_INTERLEAVED_ATTRIBSorGL_SEPARATE_ATTRIBS. no cap, those are the only two allowed.
π DESCRIPTION π
The names of the vertex or geometry shader outputs to be recorded in transform feedback mode are specified using glTransformFeedbackVaryings. When a geometry shader is active, transform feedback records the values of selected geometry shader output variables from the emitted vertices. Otherwise, the values of the selected vertex shader outputs are recorded. π
The state set by glTranformFeedbackVaryings (yes, thatβs the spelling on this page, iykyk) is stored and takes effect next time glLinkProgram() is called on program. When glLinkProgram() is called, program is linked so that the values of the specified varying variables for the vertices of each primitive generated by the GL are written to a single buffer object if bufferMode is GL_INTERLEAVED_ATTRIBS or multiple buffer objects if bufferMode is GL_SEPARATE_ATTRIBS. iconic behavior, honestly. π¦
glTransformFeedbackVaryings can also take special identifiers if bufferMode is GL_INTERLEAVED_ATTRIBS:
gl_NextBufferβ subsequent variables invaryingswill be assigned to the next buffer binding point.gl_SkipComponents#β where#may be1,2,3, or4. The variable is treated as having this number of components, but the contents of the memory are preserved under feedback operations.
In addition to the errors generated by glTransformFeedbackVaryings, the program program will fail to link if:
- The
countspecified byglTransformFeedbackVaryingsis non-zero, but the program object has no vertex or geometry shader. - Any variable name specified in the
varyingsarray is not declared as an output in the vertex shader (or the geometry shader, if active), or is not one of the special identifiers listed above. - Special identifiers appear in a
varyingsarray wherebufferModeis notGL_INTERLEAVED_ATTRIBS. - Any two entries in the
varyingsarray, which are not one of the special varyings above, specify the same varying variable. - Discounting any special identifiers, the total number of components to capture in any varying variable in
varyingsis greater than the constantGL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTSand the buffer mode isGL_SEPARATE_ATTRIBS. - The total number of components to capture is greater than the constant
GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTSand the buffer mode isGL_INTERLEAVED_ATTRIBS.
π¦ NOTES π¦
glGetTransformFeedbackVarying is available only if the GL version is 3.0 or greater. periodt.
π ERRORS π
GL_INVALID_VALUEis generated ifprogramis not the name of a program object.GL_INVALID_VALUEis generated ifbufferModeisGL_SEPARATE_ATTRIBSandcountis greater than the implementation-dependent limitGL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS.
bestie, those GL_INVALID_VALUE hits are not a vibe. double-check your program name and your separate-attribs count. π
π₯ ASSOCIATED GETS π₯
glGetTransformFeedbackVarying()
π VERSION SUPPORT π
The row label in the original table is Function / Feature Name: glTransformFeedbackVaryings. Hereβs the OpenGL version vibe check, converted from the table into a list so nobody has to squint at box-drawing characters:
- 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 π
glBeginTransformFeedback(),glEndTransformFeedbackglGetTransformFeedbackVarying()
π COPYRIGHT π
- Copyright Β© 2010-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 (the sequel) π
- Copyright Β© 2010-2014 Khronos Group
mwah π this page came from [FIXME: source], dated 08/09/2021, and itβs the GLTRANSFORMFEEDBACKV(3G) manual page. bye bestie, go record those varyings π«Άβ¨
π¦ where this page comes from
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms