public static FrameDebuggerEventData GetCurrentData() { FrameDebuggerEventData data = null; ReflectionClassWithObject obj = null; int currentPos = GetCurrentFramePosition() - 1; if (GetFrameEventData(currentPos, out obj)) { data = new FrameDebuggerEventData(); obj.CopyFieldsToObjectByVarName <FrameDebuggerEventData>(ref data); } return(data); }
private void AppendResult(AnalyzedShaderInfo info, FrameDebuggerEventData data) { if (info == null) { return; } var keywords = MaliocPluginUtility.KeywordStrToList(data.shaderKeywords); info.GetShaderMatchPrograms(programKeyInfo, keywords); foreach (var key in programKeyInfo) { var shaderProgramInfo = info.GetProgramInfo(key); if (key.passIndex == data.shaderPassIndex) { InitShaderElementInfo(shaderProgramInfo); this.resultPosition = this.currentPosition; this.Repaint(); break; } } }