GLGETTRANSFORMFEEDBA(3G)
π NAME
okay so bestie, welcome to the GLGETTRANSFORMFEEDBA(3G) manual page β yes, the header tag is literally [FIXME: manual], weβre folding that in and moving on. This page is all about glGetTransformFeedbackVarying, and its whole job is to retrieve information about varying variables selected for transform feedback. no cap, thatβs the name vibe. π
π§Ύ C SPECIFICATION
Hereβs the function signature, exact characters, copy-paste energy only:
void glGetTransformFeedbackVarying(GLuint program, GLuint index,
GLsizei bufSize, GLsizei *length,
GLsizei *size, GLenum *type,
char *name);
π PARAMETERS
programβ the name of the target program object. main character parameter, honestly.indexβ the index of the varying variable whose information to retrieve.bufSizeβ the maximum number of characters, including the null terminator, that may be written intoname. boundaries, bestie.lengthβ the address of a variable which will receive the number of characters written intoname, excluding the null-terminator. IflengthisNULL, no length is returned.sizeβ the address of a variable that will receive the size of the varying.typeβ the address of a variable that will receive the type of the varying.nameβ the address of a buffer into which will be written the name of the varying.
πΈ DESCRIPTION
Information about the set of varying variables in a linked program that will be captured during transform feedback may be retrieved by calling glGetTransformFeedbackVarying. glGetTransformFeedbackVarying provides information about the varying variable selected by index. An index of 0 selects the first varying variable specified in the varyings array passed to glTransformFeedbackVaryings(), and an index of the value of GL_TRANSFORM_FEEDBACK_VARYINGS minus one selects the last such variable. periodt. π¦
The name of the selected varying is returned as a null-terminated string in name. The actual number of characters written into name, excluding the null terminator, is returned in length. If length is NULL, no length is returned. The maximum number of characters that may be written into name, including the null terminator, is specified by bufSize. okay so thatβs the buffer situation, fr fr.
The length of the longest varying name in program is given by GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH, which can be queried with glGetProgram(). iconic query behavior, lowkey.
For the selected varying variable, its type is returned into type. The size of the varying is returned into size. The value in size is in units of the type returned in type. The type returned can be any of the scalar, vector, or matrix attribute types returned by glGetActiveAttrib(). If an error occurred, the return parameters length, size, type and name will be unmodified. This command will return as much information about the varying variables as possible. If no information is available, length will be set to zero and name will be an empty string. This situation could arise if glGetTransformFeedbackVarying is called after a failed link. π rude but noted.
π ERRORS
GL_INVALID_VALUEis generated ifprogramis not the name of a program object.GL_INVALID_VALUEis generated ifindexis greater or equal to the value ofGL_TRANSFORM_FEEDBACK_VARYINGS.GL_INVALID_OPERATIONis generated ifprogramhas not been linked.
bestie, these errors are not a vibe check you want to fail. read them, love them, avoid them. π
π ASSOCIATED GETS
glGetProgram()with argumentGL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH.
thatβs the associated get, and yes itβs giving useful. π«Ά
β VERSION SUPPORT
OpenGL version vibe check, bestie. The Function / Feature Name is glGetTransformFeedbackVarying, and hereβs how it lands across the OpenGL Version lineup:
- 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()glEndTransformFeedbackglTransformFeedbackVaryings()glGetProgram()
go read these too, bestie. iykyk. πβ¨
π 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
Copyright Β© 2010-2014 Khronos Group
xoxo, this page comes from [FIXME: source] and is dated 08/09/2021 β bye bestie! πβ¨π«Ά
π¦ 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