Add D2DEffectDisplayNameAttribute type
このコミットが含まれているのは:
1 親
e37395e871
コミット
8c7f464876
2ファイル変更
+28
-1
検索条件に一致するファイルはありません
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
|
||||
namespace ComputeSharp.D2D1;
|
||||
|
||||
/// <summary>
|
||||
/// An attribute for a D2D1 shader indicating the display name of the shader effect to create.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This only applies to effects created from <see cref="Interop.D2D1PixelShaderEffect"/>.
|
||||
/// </remarks>
|
||||
[AttributeUsage(AttributeTargets.Struct, AllowMultiple = false)]
|
||||
public sealed class D2DEffectDisplayNameAttribute : Attribute
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a new instance of the <see cref="D2DEffectDisplayNameAttribute"/> type with the specified arguments.
|
||||
/// </summary>
|
||||
/// <param name="value">The value for the display name.</param>
|
||||
public D2DEffectDisplayNameAttribute(string value)
|
||||
{
|
||||
Value = value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the display name value.
|
||||
/// </summary>
|
||||
public string Value { get; }
|
||||
}
|
||||
@@ -21,7 +21,7 @@ public sealed class D2DEffectIdAttribute : Attribute
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the number of texture inputs for the shader.
|
||||
/// Gets the effect id value.
|
||||
/// </summary>
|
||||
public Guid Value { get; }
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする