private void SetResult(AnalyzedShaderInfo data) { this.resultArea.Clear(); if (data != null) { var keywords = MaliocPluginUtility.GetMaterialCurrentKeyword(mat); programKeyInfo.Clear(); data.GetShaderMatchPrograms(programKeyInfo, keywords); foreach (var key in programKeyInfo) { var info = data.GetProgramInfo(key); var ve = ShaderInfolElement.Create(key, info, data.GetPassInfos()); this.resultArea.Add(ve); } if (programKeyInfo.Count == 0) { this.resultArea.Add(new Label("Not Found.. Keyword:")); foreach (var keyword in keywords) { this.resultArea.Add(new Label(keyword)); } } } }
public static ShaderInfolElement Create(ShaderKeywordInfo keywordInfo, ShaderProgramInfo programinfo, List <PassInformation> passInfoms) { var obj = new ShaderInfolElement(keywordInfo, programinfo, passInfoms); return(obj); }