# OpenGL Uniform Block Index and Binding ## Metadata **Status**:: #x **Zettel**:: #zettel/fleeting **Created**:: [[2024-05-13]] ## Synopsis glslc requires explicit binding on uniform block. The method `glGetUniformBlockIndex` returns `GL_INVALID_INDEX` on uniform block in SPIR-V. The index can be associated with a binding manually using `glUniformBlockBinding`. Most methods accepts both index and binding, such as `glGetActiveUniformBlockiv` and `glBindBufferBase`.