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

Method getUniformBlockByIdentity

source/globjects/source/Program.cpp:419–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417}
418
419UniformBlock * Program::getUniformBlockByIdentity(const LocationIdentity & identity)
420{
421 checkDirty();
422
423 const auto it = m_uniformBlocks.find(identity);
424
425 if (it == m_uniformBlocks.end())
426 {
427 auto insertedIt = m_uniformBlocks.emplace(identity, UniformBlock(this, identity));
428
429 return &insertedIt.first->second;
430 }
431
432 return &it->second;
433}
434
435void Program::addUniform(AbstractUniform * uniform)
436{

Callers

nothing calls this directly

Calls 1

endMethod · 0.45

Tested by

no test coverage detected