Added new template models for static functions

このコミットが含まれているのは:
Sergio Pedri committed 2019-09-04 11:58:07 +02:00
1 親 9748187c34
コミット 22d281eee8
2ファイル変更
+102

検索条件に一致するファイルはありません

+36
ファイルの表示
@@ -0,0 +1,36 @@
namespace ComputeSharp.Shaders.Renderer.Models.Functions
{
/// <summary>
/// A <see langword="class"/> that contains info on a function parameter
/// </summary>
internal class ParameterInfo
{
/// <summary>
/// Gets the type of the current parameter
/// </summary>
public string ParameterType { get; }
/// <summary>
/// Gets the name to use for the current parameter
/// </summary>
public string ParameterName { get; }
/// <summary>
/// Gets whether or not the current parameter is the last one for the parent function
/// </summary>
public bool IsLastParameter { get; }
/// <summary>
/// Creates a new <see cref="ParameterInfo"/> instance with the specified parameters
/// </summary>
/// <param name="parameterType">The type of the current parameter</param>
/// <param name="parameterName">The name of the current parameter</param>
/// <param name="last">Indicates whether or not the current parameter is the last one</param>
public ParameterInfo(string parameterType, string parameterName, bool last)
{
ParameterType = parameterType;
ParameterName = parameterName;
IsLastParameter = last;
}
}
}