mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-03-26 13:05:03 +00:00
Merge remote-tracking branch 'frassle/compsize' into develop
This commit is contained in:
commit
baee71070e
|
@ -327,6 +327,16 @@ namespace Bind
|
|||
docs[0] = docs[0].Insert(summary_start, category);
|
||||
}
|
||||
|
||||
foreach (var param in f.WrappedDelegate.Parameters)
|
||||
{
|
||||
var index = docs.IndexOf("/// <param name=\"" + param.Name +"\">");
|
||||
if (index != -1 && param.ComputeSize != "")
|
||||
{
|
||||
var compute_size = string.Format("[length: {0}]", param.ComputeSize);
|
||||
docs[index] = docs[index] + compute_size;
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var doc in docs)
|
||||
{
|
||||
sw.WriteLine(doc);
|
||||
|
|
|
@ -192,6 +192,17 @@ namespace Bind.Structures
|
|||
|
||||
#endregion
|
||||
|
||||
#region public string ComputeSize
|
||||
|
||||
string computeSize;
|
||||
public string ComputeSize
|
||||
{
|
||||
get { return computeSize; }
|
||||
set { computeSize = value; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Static Members
|
||||
|
||||
// Returns the FlowDirection that matches the specified string
|
||||
|
|
|
@ -312,6 +312,14 @@ namespace Bind
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
p.ComputeSize = param.GetAttribute("count", String.Empty).Trim();
|
||||
if (p.ComputeSize.StartsWith("COMPSIZE"))
|
||||
{
|
||||
//remove the compsize hint, just keep comma delimited param names
|
||||
var len = "COMPSIZE(".Length;
|
||||
p.ComputeSize = p.ComputeSize.Substring(len, (p.ComputeSize.Length - len) - 1);
|
||||
}
|
||||
|
||||
p.Flow = Parameter.GetFlowDirection(param.GetAttribute("flow", String.Empty).Trim());
|
||||
|
||||
|
|
Loading…
Reference in a new issue