---------------------------------------------------------------------------
| 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, |
no test coverage detected