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