Beispiel #1
0
        public static PassInfo FromOptimizerPass(IDxcOptimizerPass pass)
        {
            PassInfo result = new PassInfo()
            {
                Name        = pass.GetOptionName(),
                Description = pass.GetDescription()
            };

            PassArgInfo[] args = new PassArgInfo[pass.GetOptionArgCount()];
            for (int i = 0; i < pass.GetOptionArgCount(); ++i)
            {
                PassArgInfo info = new PassArgInfo()
                {
                    Name        = pass.GetOptionArgName((uint)i),
                    Description = pass.GetOptionArgDescription((uint)i),
                    PassInfo    = result
                };
                args[i] = info;
            }
            result.Args = args;
            return(result);
        }
Beispiel #2
0
 public PassInfoWithValues(PassInfo pass)
 {
     this.PassInfo = pass;
     this.Values   = new List <PassArgValueInfo>();
 }