MCPcopy Create free account
hub / github.com/axmolengine/axmol / loadProgram

Method loadProgram

core/renderer/backend/ProgramManager.cpp:178–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178Program* ProgramManager::loadProgram(uint64_t progId)
179{
180 if (progId < ProgramType::BUILTIN_COUNT)
181 return getBuiltinProgram(static_cast<uint32_t>(progId));
182
183 auto it = _customRegistry.find(progId);
184 if (it != _customRegistry.end())
185 return loadProgram(it->second.vsName, it->second.fsName, ProgramType::CUSTOM_PROGRAM, progId, it->second.vlt);
186 return nullptr;
187}
188
189Program* ProgramManager::loadProgram(std::string_view vsName, std::string_view fsName, VertexLayoutType vlt)
190{

Callers 15

parseShaderMethod · 0.80
CreateShaderMethod · 0.80
onEnterMethod · 0.80
initProgramStateMethod · 0.80
loadShaderVertexMethod · 0.80
initProgramMethod · 0.80
initMethod · 0.80
initMethod · 0.80

Calls 11

getInstanceFunction · 0.85
fullPathForFilenameMethod · 0.80
getStringFromFileMethod · 0.80
newProgramMethod · 0.80
setProgramIdsMethod · 0.80
setupVertexLayoutMethod · 0.80
findMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45
dataMethod · 0.45
emplaceMethod · 0.45

Tested by 8

onEnterMethod · 0.64
initProgramStateMethod · 0.64
loadShaderVertexMethod · 0.64
initProgramMethod · 0.64
initMethod · 0.64
initMethod · 0.64