MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / getShaderId

Method getShaderId

source/MRViewer/MRGLStaticHolder.cpp:60–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58{
59
60unsigned GLStaticHolder::getShaderId( ShaderType type )
61{
62 auto& instance = GLStaticHolder::instance_();
63 auto& id = instance.shadersIds_[type];
64 if ( id == 0 )
65 {
66 instance.createShader_( type );
67 }
68
69 return id;
70}
71
72void GLStaticHolder::freeShader( ShaderType type )
73{

Callers

nothing calls this directly

Calls 1

createShader_Method · 0.80

Tested by

no test coverage detected