Axiom.CgPrograms.CgProgram.LoadFromSource C# (CSharp) Метод

LoadFromSource() защищенный Метод

protected LoadFromSource ( ) : void
Результат void
		protected override void LoadFromSource()
		{
			SelectProfile();

			string[] args = null;

			// This option causes an error with the CG 1.3 compiler
			if ( selectedCgProfile == Cg.CG_PROFILE_VS_1_1 )
			{
				args = new string[] { "-profileopts", "dcls", null };
			}

			// create the Cg program
			cgProgram = Cg.cgCreateProgram( cgContext, Cg.CG_SOURCE, Source, selectedCgProfile, entry, args );

			CgHelper.CheckCgError( "Unable to compile Cg program " + Name, cgContext );
		}