27 行
772 B
C#
27 行
772 B
C#
using System;
|
|
using System.Diagnostics;
|
|
|
|
namespace ComputeSharp.Core.Intrinsics.Attributes;
|
|
|
|
/// <summary>
|
|
/// An attribute indicating the native member name of a given HLSL intrinsic.
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
|
|
[Conditional("SOURCE_GENERATOR")]
|
|
internal sealed class HlslIntrinsicNameAttribute : Attribute
|
|
{
|
|
/// <summary>
|
|
/// Creates a new <see cref="HlslIntrinsicNameAttribute"/> instance with the specified parameters.
|
|
/// </summary>
|
|
/// <param name="name">The name of the HLSL intrinsic.</param>
|
|
public HlslIntrinsicNameAttribute(string name)
|
|
{
|
|
Name = name;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the name of the HLSL intrinsic.
|
|
/// </summary>
|
|
public string Name { get; }
|
|
}
|