public ICompileOptions ReadOptions() { HLSLOptions opts = new HLSLOptions(); opts.Compatibility = chkCompat.Checked; opts.EntryPoint = txtEntryPoint.Text; opts.Target = (HLSLTarget) Enum.Parse(typeof(HLSLTarget), (string) cmbTarget.Items[cmbTarget.SelectedIndex]); opts.OptimizationLevel = (HLSLOptimizationLevel)Enum.Parse(typeof(HLSLOptimizationLevel), (string) cmbOpt.Items[cmbOpt.SelectedIndex]); return opts; }
public ICompileOptions ReadOptions() { HLSLOptions opts = new HLSLOptions(); opts.Compatibility = chkCompat.Checked; opts.EntryPoint = txtEntryPoint.Text; opts.Target = (HLSLTarget)Enum.Parse(typeof(HLSLTarget), (string)cmbTarget.Items[cmbTarget.SelectedIndex]); opts.OptimizationLevel = (HLSLOptimizationLevel)Enum.Parse(typeof(HLSLOptimizationLevel), (string) cmbOpt.Items[cmbOpt.SelectedIndex]); return(opts); }