Example #1
0
 private void OpenToolStripMenuItem_Click(object sender, EventArgs e)
 {
     openFileDialog1.Filter = "Processed Shaders|*.glsl_out";
     if (openFileDialog1.ShowDialog() == DialogResult.OK)
     {
         shader = new AMDShaderAnalyzer(openFileDialog1.FileName);
         shader.InvokeAnalyzer(curArch);
         UpdateDisplay();
     }
 }
        public static AMDShaderAnalyzer[] Analyze(string base_folder)
        {
            var files    = Directory.EnumerateFiles(base_folder, "*.glsl_out", SearchOption.AllDirectories).ToArray();
            var analyzer = new AMDShaderAnalyzer[files.Length];

            for (int i = 0; i < analyzer.Length; i++)
            {
                analyzer[i] = new AMDShaderAnalyzer(files[i]);
                analyzer[i].InvokeAnalyzer(GPUArch.gfx1010);
            }

            return(analyzer);
        }