Axiom.RenderSystems.Xna.XnaGpuProgram.load C# (CSharp) Method

load() protected method

Overridden to allow for loading microcode from external sources.
protected load ( ) : void
return void
		protected override void load()
		{
			if ( shaderCode != null && shaderCode.Length > 0 )
			{
				// unload if needed
				if ( IsLoaded )
				{
					Unload();
				}


				// creates the shader from an external microcode source
				// for example, a compiled HLSL program
				LoadFromShaderCode();
			}
			else
			{
				// call base implementation
				base.Load();
			}
		}