Axiom.Graphics.GpuProgramManager.CreateProgramFromString C# (CSharp) Méthode

CreateProgramFromString() public méthode

Create a new, unloaded GpuProgram from a string of assembly code.
Use this method in preference to the 'load' methods if you wish to define a GpuProgram, but not load it yet; useful for saving memory.
public CreateProgramFromString ( string name, string group, string source, GpuProgramType type, string syntaxCode ) : Axiom.Graphics.GpuProgram
name string /// The name of the program. ///
group string
source string /// The asm source of the program to create. ///
type GpuProgramType
syntaxCode string /// Name of the syntax to use for the program, i.e. vs_1_1, arbvp1, etc. ///
Résultat Axiom.Graphics.GpuProgram
	    public virtual GpuProgram CreateProgramFromString( string name, string group, string source, GpuProgramType type, string syntaxCode )
		{
			GpuProgram program = Create( name, group, type, syntaxCode );

			program.Type = type;
			program.SyntaxCode = syntaxCode;
			program.Source = source;

			return program;
		}