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

Load() public method

Loads a GPU program from a file of assembly.
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 Load ( string name, string group, string fileName, GpuProgramType type, string syntaxCode ) : Axiom.Graphics.GpuProgram
name string /// Identifying name of the program to load. ///
group string
fileName string /// The file 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 Load( string name, string group, string fileName, GpuProgramType type, string syntaxCode )
		{
			GpuProgram program = GetByName( name );

			if ( program == null )
			{
				program = CreateProgram( name, group, fileName, type, syntaxCode );
			}

			program.Load();
			return program;
		}