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

Method createProgram

OgreMain/src/OgreGpuProgramManager.cpp:127–138  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

125 }
126 //---------------------------------------------------------------------------
127 GpuProgramPtr GpuProgramManager::createProgram( const String &name, const String &groupName,
128 const String &filename, GpuProgramType gptype,
129 const String &syntaxCode )
130 {
131 GpuProgramPtr prg =
132 std::static_pointer_cast<GpuProgram>( create( name, groupName, gptype, syntaxCode ) );
133 // Set all prarmeters (create does not set, just determines factory)
134 prg->setType( gptype );
135 prg->setSyntaxCode( syntaxCode );
136 prg->setSourceFile( filename );
137 return prg;
138 }
139 //---------------------------------------------------------------------------
140 GpuProgramPtr GpuProgramManager::createProgramFromString( const String &name,
141 const String &groupName,

Callers 5

translateGpuProgramMethod · 0.45
compileShaderCodeMethod · 0.45
compileShaderMethod · 0.45

Calls 3

setSyntaxCodeMethod · 0.80
setSourceFileMethod · 0.80
setTypeMethod · 0.45

Tested by

no test coverage detected