Axiom.Graphics.GpuProgramManager.LoadFromString C# (CSharp) Method

LoadFromString() public method

Loads a GPU program from a string containing the assembly source.
This method creates a new program of the type specified as the second parameter. As with all types of ResourceManager, this class will search for the file in all resource locations it has been configured to look in.
public LoadFromString ( string name, string group, string source, GpuProgramType type, string syntaxCode ) : Axiom.Graphics.GpuProgram
name string /// Name used to identify this program. ///
group string
source string /// Source code of the program to load. ///
type GpuProgramType /// Type of program to create. ///
syntaxCode string /// Syntax code of the program, i.e. vs_1_1, arbvp1, etc. ///
return Axiom.Graphics.GpuProgram
	    public virtual GpuProgram LoadFromString( string name, string group, string source, GpuProgramType type, string syntaxCode )
		{
			GpuProgram program = GetByName( name );

			if ( program == null )
			{
				program = CreateProgramFromString( name, group, source, type, syntaxCode );
			}

			program.Load();
			return program;
		}