void AppendRetroShaderChain(FilterProgram program, string name, BizHawk.Client.EmuHawk.Filters.RetroShaderChain retroChain, Dictionary <string, object> properties)
 {
     for (int i = 0; i < retroChain.Passes.Length; i++)
     {
         var    pass  = retroChain.Passes[i];
         var    rsp   = new BizHawk.Client.EmuHawk.Filters.RetroShaderPass(retroChain, i);
         string fname = string.Format("{0}[{1}]", name, i);
         program.AddFilter(rsp, fname);
         rsp.Parameters = properties;
     }
 }
Beispiel #2
0
		void AppendRetroShaderChain(FilterProgram program, string name, BizHawk.Client.EmuHawk.Filters.RetroShaderChain retroChain, Dictionary<string, object> properties)
		{
			for (int i = 0; i < retroChain.Passes.Length; i++)
			{
				var pass = retroChain.Passes[i];
				var rsp = new BizHawk.Client.EmuHawk.Filters.RetroShaderPass(retroChain, i);
				string fname = string.Format("{0}[{1}]", name, i);
				program.AddFilter(rsp, fname);
				rsp.Parameters = properties;
			}
		}