/// <summary> /// Adds the virtual table of the mixin /// </summary> /// <param name="shaderVirtualTable"></param> /// <param name="className"></param> /// <param name="errorLogger"></param> public void AddVirtualTable(ShaderVirtualTable shaderVirtualTable, string className, LoggerResult errorLogger) { var newVT = shaderVirtualTable.VirtualTableGroup[className].ToArray(); VirtualTableGroup.Add(className, newVT); foreach (var methodDecl in newVT) ReplaceVirtualMethod(methodDecl, errorLogger); }
/// <summary> /// Adds the virtual table of the mixin /// </summary> /// <param name="shaderVirtualTable"></param> /// <param name="className"></param> /// <param name="errorLogger"></param> public void AddVirtualTable(ShaderVirtualTable shaderVirtualTable, string className, LoggerResult errorLogger) { var newVT = shaderVirtualTable.VirtualTableGroup[className].ToArray(); VirtualTableGroup.Add(className, newVT); foreach (var methodDecl in newVT) { ReplaceVirtualMethod(methodDecl, errorLogger); } }