Rename to D2DGeneratedPixelShaderDescriptorAttribute
このコミットが含まれているのは:
1 親
4d7f288364
コミット
933dca22ed
29ファイル変更
+77
-77
検索条件に一致するファイルはありません
@@ -22,7 +22,7 @@ public sealed partial class ID2D1ShaderGenerator : IIncrementalGenerator
|
||||
IncrementalValuesProvider<D2D1ShaderInfo> shaderInfo =
|
||||
context.SyntaxProvider
|
||||
.ForAttributeWithMetadataName(
|
||||
"ComputeSharp.D2D1.D2DGeneratedShaderMarshallerAttribute",
|
||||
"ComputeSharp.D2D1.D2DGeneratedPixelShaderDescriptorAttribute",
|
||||
static (node, _) => node.IsTypeDeclarationWithOrPotentiallyWithBaseTypes<StructDeclarationSyntax>(),
|
||||
static (context, token) =>
|
||||
{
|
||||
|
||||
+4
-4
@@ -3,22 +3,22 @@ using System;
|
||||
namespace ComputeSharp.D2D1;
|
||||
|
||||
/// <summary>
|
||||
/// An attribute that indicates that a given D2D1 shader should have its associated marshalling code being generated.
|
||||
/// An attribute that indicates that a given D2D1 shader should have its associated descriptor code being generated.
|
||||
/// <para>
|
||||
/// This attribute can be used on shader types that are declared as <see langword="partial"/>:
|
||||
/// <code>
|
||||
/// [D2DGeneratedShaderMarshaller]
|
||||
/// [D2DGeneratedPixelShaderDescriptor]
|
||||
/// partial struct MyShader : ID2D1PixelShader
|
||||
/// {
|
||||
/// }
|
||||
/// </code>
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// When a shader is annotated with <see cref="D2DGeneratedShaderMarshallerAttribute"/>, the source generator will also add
|
||||
/// When a shader is annotated with <see cref="D2DGeneratedPixelShaderDescriptorAttribute"/>, the source generator will also add
|
||||
/// <see cref="Descriptors.ID2D1PixelShaderDescriptor{T}"/> to its implemented interfaces, and implement its APIs automatically.
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Struct, AllowMultiple = false)]
|
||||
public sealed class D2DGeneratedShaderMarshallerAttribute : Attribute
|
||||
public sealed class D2DGeneratedPixelShaderDescriptorAttribute : Attribute
|
||||
{
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする