MCPcopy Create free account
hub / github.com/OGRECave/ogre / translateProgramRef

Method translateProgramRef

OgreMain/src/OgreScriptTranslator.cpp:2240–2252  ·  view source on GitHub ↗

-------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

2238
2239 //-------------------------------------------------------------------------
2240 void PassTranslator::translateProgramRef(GpuProgramType type, ScriptCompiler *compiler, ObjectAbstractNode *node)
2241 {
2242 auto program = getProgram(compiler, node);
2243 if(!program) return;
2244 auto pass = any_cast<Pass*>(node->parent->context);
2245
2246 pass->setGpuProgram(type, program);
2247 if(program->isSupported())
2248 {
2249 GpuProgramParametersSharedPtr params = pass->getGpuProgramParameters(type);
2250 GpuProgramTranslator::translateProgramParameters(compiler, params, node);
2251 }
2252 }
2253 //-------------------------------------------------------------------------
2254 void PassTranslator::translateShadowCasterProgramRef(GpuProgramType type, ScriptCompiler *compiler, ObjectAbstractNode *node)
2255 {

Callers

nothing calls this directly

Calls 3

getProgramFunction · 0.85
setGpuProgramMethod · 0.45
isSupportedMethod · 0.45

Tested by

no test coverage detected