GLUSEPROGRAMSTAGES(3G)
β¨ NAME β¨
okay so this is the GLUSEPROGRAMSTAGES(3G) manual page, bestie π. The function is glUseProgramStages, and it binds stages of a program object to a program pipeline. Thatβs the whole vibe. periodt.
π» C SPECIFICATION
void glUseProgramStages(GLuint pipeline, GLbitfield stages,
GLuint program);
π PARAMETERS
pipelineβ the program pipeline object youβre binding stages fromprograminto. main character object energy.stagesβ the set of program stages to bind to the program pipeline object. This is a bitmask situation, iykyk.programβ the program object containing the shader executables to use inpipeline. slay.
π«Ά DESCRIPTION
okay so hereβs the tea: glUseProgramStages binds executables from a program object associated with a specified set of shader stages to the program pipeline object given by pipeline. pipeline specifies the program pipeline object to which to bind the executables. stages contains a logical combination of bits indicating the shader stages to use within program with the program pipeline object pipeline.
stages must be a logical combination of GL_VERTEX_SHADER_BIT, GL_TESS_CONTROL_SHADER_BIT, GL_TESS_EVALUATION_SHADER_BIT, GL_GEOMETRY_SHADER_BIT, GL_FRAGMENT_SHADER_BIT and GL_COMPUTE_SHADER_BIT. Additionally, the special value GL_ALL_SHADER_BITS may be specified to indicate that all executables contained in program should be installed in pipeline. iconic bitmask behavior β¨.
If program refers to a program object with a valid shader attached for an indicated shader stage, glUseProgramStages installs the executable code for that stage in the indicated program pipeline object pipeline. If program is zero, or refers to a program object with no valid shader executable for a given stage, it is as if the pipeline object has no programmable stage configured for the indicated shader stages. If stages contains bits other than those listed above, and is not equal to GL_ALL_SHADER_BITS, an error is generated.
π NOTES
The GL_COMPUTE_SHADER_BIT bit is available only if the GL version is 4.3 or greater. write that down π.
π ERRORS
GL_INVALID_VALUEis generated ifshaderscontains set bits that are not recognized, and is not the reserved valueGL_ALL_SHADER_BITS. (yes, the original saysshadershere β weβre not fixing it, bestie π )GL_INVALID_OPERATIONis generated ifprogramrefers to a program object that was not linked with itsGL_PROGRAM_SEPARABLEstatus set.GL_INVALID_OPERATIONis generated ifprogramrefers to a program object that has not been successfully linked.GL_INVALID_OPERATIONis generated ifpipelineis not a name previously returned from a call toglGenProgramPipelines()or if such a name has been deleted by a call toglDeleteProgramPipelines().
vibe check warning: these errors are not a drill. check your pipeline names and your GL_PROGRAM_SEPARABLE status, fr fr.
π°οΈ VERSION SUPPORT
glUseProgramStages version support vibe check β function/feature name: glUseProgramStages, under OpenGL Version:
- 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:
β
checkmark girlies rise β β¨.
π SEE ALSO
glGenProgramPipelines()glDeleteProgramPipelines()glIsProgramPipeline()
π 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 (again, bestie)
Copyright Β© 2010-2014 Khronos Group
okay thatβs the page! source/version: [FIXME: source] β¨ date: 08/09/2021 β¨ page: GLUSEPROGRAMSTAGES(3G) β byeee π
π«Ά
π¦ 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