GLSHADERSTORAGEBLOCK(3G)
πΈ NAME πΈ
Hey bestie, welcome to the GLSHADERSTORAGEBLOCK(3G) page π
β this is all about glShaderStorageBlockBinding, aka the function that lets you change an active shader storage block binding. Main character energy fr fr. β¨
β¨ C SPECIFICATION β¨
void glShaderStorageBlockBinding(GLuint program,
GLuint storageBlockIndex,
GLuint storageBlockBinding);
π PARAMETERS π
programβ the name of the program containing the block whose binding you're changing, bestie. π«ΆstorageBlockIndexβ the index storage block within the program. Yes, that exact phrase is lowkey the whole tea. β¨storageBlockBindingβ the index storage block binding to associate with the specified storage block. Iconic. π«
π DESCRIPTION π
Okay so glShaderStorageBlockBinding changes the active shader storage block with an assigned index of storageBlockIndex in program object program. storageBlockIndex must be an active shader storage block index in program. storageBlockBinding must be less than the value of GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS.
If successful, glShaderStorageBlockBinding specifies that program will use the data store of the buffer object bound to the binding point storageBlockBinding to read and write the values of the buffer variables in the shader storage block identified by storageBlockIndex. That's the whole vibe. π
π ERRORS π
Bestie, these are the error states. Not cute, but important. π«Ά
GL_INVALID_VALUEis generated ifprogramis not the name of either a program or shader object.GL_INVALID_OPERATIONis generated ifprogramis the name of a shader object.GL_INVALID_VALUEis generated ifstorageBlockIndexis not an active shader storage block index inprogram, or ifstorageBlockBindingis greater than or equal to the value ofMAX_SHADER_STORAGE_BUFFER_BINDINGS.
π ASSOCIATED GETS π
glGet()with argumentsGL_SHADER_STORAGE_BUFFER_BINDING,GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS,GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS,GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS,GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS,GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS,GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS,GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKSorGL_MAX_COMBINED_SHADER_STORAGE_BLOCKS,GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS, orGL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES.
π VERSION SUPPORT π
Version check, bestie! For Function / Feature Name glShaderStorageBlockBinding, the OpenGL Version tea is:
- 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 it's giving "late bloomer but absolutely slays from 4.3 onward." π
π¦ SEE ALSO π¦
No entries here, bestie β the SEE ALSO section is literally empty. π«Ά
π COPYRIGHT π
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 π (yes, again)
Copyright Β© 2014 Khronos Group
Okay thatβs the whole page, bestie. This cutie came from [FIXME: source] and is dated 08/09/2021. Bye, go bind those blocks responsibly! πβ¨π
π¦ 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