示例#1
0
        static void RunChudUnitTest()
        {
            Console.WriteLine($"TESTING CHUD");

            var unitTest = new ExplicitUnitTest(ChudReferencePath);

            if (ChudTestSingle)
            {
                if (TestStageType == ShaderSubtype.Pixel)
                {
                    unitTest.TestChudPixelShader(ChudShader);
                }
                else if (TestStageType == ShaderSubtype.Vertex)
                {
                    unitTest.TestChudVertexShader(ChudShader);
                }
            }
            else
            {
                if (TestStageType == ShaderSubtype.Pixel)
                {
                    unitTest.TestAllChudPixelShaders();
                }
                else if (TestStageType == ShaderSubtype.Vertex)
                {
                    unitTest.TestAllChudVertexShaders();
                }
            }
        }
示例#2
0
        static void RunExplicitUnitTest()
        {
            Console.WriteLine($"TESTING EXPLICIT");

            var unitTest = new ExplicitUnitTest(ExplicitReferencePath);

            if (ExplicitTestSingle)
            {
                if (TestStageType == ShaderSubtype.Pixel)
                {
                    unitTest.TestExplicitPixelShader(ExplicitShader);
                }
                else if (TestStageType == ShaderSubtype.Vertex)
                {
                    unitTest.TestExplicitVertexShader(ExplicitShader);
                }
            }
            else
            {
                if (TestStageType == ShaderSubtype.Pixel)
                {
                    unitTest.TestAllExplicitPixelShaders();
                }
                else if (TestStageType == ShaderSubtype.Vertex)
                {
                    unitTest.TestAllExplicitVertexShaders();
                }
            }
        }