using System;
using System.Diagnostics;
namespace ComputeSharp.Core.Intrinsics.Attributes;
///
/// An attribute indicating the native member name of a given HLSL intrinsic.
///
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
[Conditional("SOURCE_GENERATOR")]
internal sealed class HlslIntrinsicNameAttribute : Attribute
{
///
/// Creates a new instance with the specified parameters.
///
/// The name of the HLSL intrinsic.
public HlslIntrinsicNameAttribute(string name)
{
Name = name;
}
///
/// Gets the name of the HLSL intrinsic.
///
public string Name { get; }
///
/// Gets whether or not matching parameters is also required to extract the name of this intrinsic.
///
public bool RequiresParametersMatching { get; init; }
}