Use primary constructors in published projects
このコミットが含まれているのは:
1 親
531e3c3b35
コミット
46a6b25756
54ファイル変更
+210
-564
検索条件に一致するファイルはありません
@@ -6,23 +6,15 @@ namespace ComputeSharp.Core.Intrinsics.Attributes;
|
||||
/// <summary>
|
||||
/// An attribute indicating the native member name of a given HLSL intrinsic.
|
||||
/// </summary>
|
||||
/// <param name="name">The name of the HLSL intrinsic.</param>
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
|
||||
[Conditional("SOURCE_GENERATOR")]
|
||||
internal sealed class HlslIntrinsicNameAttribute : Attribute
|
||||
internal sealed class HlslIntrinsicNameAttribute(string name) : 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; }
|
||||
public string Name => name;
|
||||
|
||||
/// <summary>
|
||||
/// Gets whether or not matching parameters is also required to extract the name of this intrinsic.
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする