MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / createProgramFromString

Method createProgramFromString

OgreMain/src/OgreGpuProgramManager.cpp:140–152  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

138 }
139 //---------------------------------------------------------------------------
140 GpuProgramPtr GpuProgramManager::createProgramFromString( const String &name,
141 const String &groupName,
142 const String &code, GpuProgramType gptype,
143 const String &syntaxCode )
144 {
145 GpuProgramPtr prg =
146 std::static_pointer_cast<GpuProgram>( create( name, groupName, gptype, syntaxCode ) );
147 // Set all prarmeters (create does not set, just determines factory)
148 prg->setType( gptype );
149 prg->setSyntaxCode( syntaxCode );
150 prg->setSource( code );
151 return prg;
152 }
153 //---------------------------------------------------------------------------
154 const GpuProgramManager::SyntaxCodes &GpuProgramManager::getSupportedSyntax() const
155 {

Callers

nothing calls this directly

Calls 3

setSyntaxCodeMethod · 0.80
setTypeMethod · 0.45
setSourceMethod · 0.45

Tested by

no test coverage detected