Axiom.RenderSystems.DirectX9.D3DGpuProgram.LoadFromSource C# (CSharp) Метод

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

Loads a D3D shader from the assembler source.
protected LoadFromSource ( ) : void
Результат void
		protected override void LoadFromSource()
		{
			string errors = null;

			// load the shader from the source string
            DX.Direct3D9.ShaderBytecode microcode = D3D.ShaderBytecode.Assemble(Source, null, null, 0, out errors);

			if ( !string.IsNullOrEmpty( errors ) )
			{
				LogManager.Instance.Write( "Error while compiling pixel shader '{0}':\n {1}", Name, errors );
				return;
			}

			// load the code into a shader object (polymorphic)
			LoadFromMicrocode( microcode );
		}