Exemple #1
0
        public bool OpenEditor()
        {
            var path = Factory.GetPathOfXkslShader(Name);

            Process.Start(path);

            var bytecodeCompilerResults = CompilerResults.Bytecode.WaitForResult();

            foreach (var m in bytecodeCompilerResults.CompilationLog.Messages)
            {
                if (EffectNodeFactory.TryGetFilePath(m, out string p) && p != path && File.Exists(p))
                {
                    Process.Start(p);
                }
                break;
            }

            return(true);
        }
Exemple #2
0
 public EffectNodeDescription(EffectNodeFactory factory, string effectName)
 {
     Factory = factory;
     Name    = effectName;
 }