public static void Pause(GenerateShaderStage stage)
        {
            switch (stage)
            {
            case GenerateShaderStage.Global:
                Global.Stop();
                break;

            case GenerateShaderStage.GroupByConstantBuffer:
                GroupByConstantBuffer.Stop();
                break;

            case GenerateShaderStage.StreamCreator:
                StreamCreator.Stop();
                break;

            case GenerateShaderStage.ExpandForEachStatements:
                ExpandForEachStatements.Stop();
                break;

            case GenerateShaderStage.RemoveUselessVariables:
                RemoveUselessVariables.Start();
                break;
            }
        }
 public static void Pause(GenerateShaderStage stage)
 {
     switch (stage)
     {
         case GenerateShaderStage.Global:
             Global.Stop();
             break;
         case GenerateShaderStage.GroupByConstantBuffer:
             GroupByConstantBuffer.Stop();
             break;
         case GenerateShaderStage.StreamCreator:
             StreamCreator.Stop();
             break;
         case GenerateShaderStage.ExpandForEachStatements:
             ExpandForEachStatements.Stop();
             break;
         case GenerateShaderStage.RemoveUselessVariables:
             RemoveUselessVariables.Start();
             break;
     }
 }