namespace ComputeSharp.Shaders.Renderer.Models.Functions
{
///
/// A that contains info on a function parameter
///
internal class ParameterInfo
{
///
/// Gets the type of the current parameter
///
public string ParameterType { get; }
///
/// Gets the name to use for the current parameter
///
public string ParameterName { get; }
///
/// Gets whether or not the current parameter is the last one for the parent function
///
public bool IsLastParameter { get; }
///
/// Creates a new instance with the specified parameters
///
/// The type of the current parameter
/// The name of the current parameter
/// Indicates whether or not the current parameter is the last one
public ParameterInfo(string parameterType, string parameterName, bool last)
{
ParameterType = parameterType;
ParameterName = parameterName;
IsLastParameter = last;
}
}
}