Axiom.RenderSystems.OpenGL.ATI.Compiler2Pass.Compile C# (CSharp) Метод

Compile() публичный Метод

Compile the source - performs 2 passes: First pass is to tokinize, check semantics and context. Second pass is performed by subclass and converts tokens to application specific instructions.
public Compile ( string source ) : bool
source string Source to be compiled.
Результат bool
		public bool Compile( string source )
		{
			bool passed = false;

			this.source = source;

			// start compiling if there is a rule base to work with
			if ( rootRulePath != null )
			{
				passed = DoPass1();

				if ( passed )
				{
					passed = DoPass2();
				}
			}

			return passed;
		}