Beispiel #1
0
 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;
 }
Beispiel #2
0
        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);
        }