| 40 | } |
| 41 | |
| 42 | GLuint UniformBlock::blockIndex() const |
| 43 | { |
| 44 | if (m_identity.isLocation()) |
| 45 | return m_identity.location(); |
| 46 | |
| 47 | if (m_identity.isName()) |
| 48 | return m_program->getUniformBlockIndex(m_identity.name()); |
| 49 | |
| 50 | return GL_INVALID_INDEX; |
| 51 | } |
| 52 | |
| 53 | void UniformBlock::updateBinding() const |
| 54 | { |
nothing calls this directly
no test coverage detected