Axiom.RenderSystems.DirectX9.HLSL.HLSLProgram.SetParam C# (CSharp) Метод

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

Sets a param for this HLSL program.
public SetParam ( string name, string val ) : bool
name string
val string
Результат bool
		public override bool SetParam( string name, string val )
		{
			bool handled = true;

			switch ( name )
			{
				case "entry_point":
					entry = val;
					break;

				case "target":
					target = val.Split( ' ' )[ 0 ];
					break;

				case "preprocessor_defines":
					preprocessorDefines = val;
					break;

				case "column_major_matrices":
					columnMajorMatrices = StringConverter.ParseBool( val );
					break;

				case "optimisation_level":
				case "optimization_level":
					optimizationLevel = (OptimizationLevel)ScriptEnumAttribute.Lookup( val, typeof( OptimizationLevel ) );
					break;

				default:
					LogManager.Instance.Write( "HLSLProgram: Unrecognized parameter '{0}'", name );
					handled = false;
					break;
			}

			return handled;
		}