MCPcopy Create free account
hub / github.com/cginternals/globjects / blockIndex

Method blockIndex

source/globjects/source/UniformBlock.cpp:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42GLuint 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
53void UniformBlock::updateBinding() const
54{

Callers

nothing calls this directly

Calls 5

isLocationMethod · 0.80
isNameMethod · 0.80
getUniformBlockIndexMethod · 0.80
locationMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected