상속: HlslAnalyzer
예제 #1
0
        void PrintGLSLFile(Node rootNode, GLSLGenerator gen, string nameToExport)
        {
            ArrayList dependenciesToExport = gen.GetWhoThisFunctionCalls(nameToExport);

            TokenTreeToText glslWriter = new TokenTreeToText(nameToExport, dependenciesToExport);
            glslWriter.WriteValues(rootNode);
        }
예제 #2
0
파일: Main.cs 프로젝트: ARLM-Attic/hl2glsl
        public static void Main(string[] args)
        {
            Console.WriteLine("Test Began!");

            if (args.Length < 2)
            {
                Console.WriteLine("You must pass at least one externalizable function as the main!");
            }

            MainClass m = new MainClass();

            //string[] functions = args[0..3];
            ArrayList mainFunctions = new ArrayList();

            for (int i = 1; i < args.Length; i++)
            {
                mainFunctions.Add(args[i]);
            }

            GLSLGenerator gen  = new GLSLGenerator(mainFunctions);
            Node          node = m.ParseFile(args[0], gen);

            m.PrintLogFile(node);
            for (int i = 0; i < mainFunctions.Count; i++)
            {
                m.PrintGLSLFile(node, gen, (string)mainFunctions[i]);
            }
            //gen.PrintCallTree();

            Console.WriteLine("Test OK!");
        }
예제 #3
0
        public static void Main(string[] args)
        {
            Console.WriteLine("Test Began!");

            if (args.Length < 2) {
                Console.WriteLine("You must pass at least one externalizable function as the main!");
                return;
            }

            MainClass m = new MainClass();

            //string[] functions = args[0..3];
            ArrayList mainFunctions = new ArrayList();
            for (int i=1; i<args.Length; i++) {
                mainFunctions.Add(args[i]);
            }

            GLSLGenerator gen = new GLSLGenerator(mainFunctions);
            Node node = m.ParseFile(args[0], gen);

            m.PrintLogFile(node);
            for (int i=0; i<mainFunctions.Count; i++) {
                m.PrintGLSLFile(node, gen, (string)mainFunctions[i]);
            }
            //gen.PrintCallTree();

            Console.WriteLine("Test OK!");
        }
예제 #4
0
파일: Main.cs 프로젝트: ARLM-Attic/hl2glsl
        void PrintGLSLFile(Node rootNode, GLSLGenerator gen, string nameToExport)
        {
            ArrayList dependenciesToExport = gen.GetWhoThisFunctionCalls(nameToExport);

            TokenTreeToText glslWriter = new TokenTreeToText(nameToExport, dependenciesToExport);

            glslWriter.WriteValues(rootNode);
        }