ファイル
ComputeSharp/src/ComputeSharp.Shaders/Renderer/Models/Functions/ParameterInfo.cs
T

37 行
1.3 KiB
C#

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;
}
}
}