Remove EffectIdInfo model
このコミットが含まれているのは:
1 親
4fa5a7c35e
コミット
8f2afaef99
4ファイル変更
+7
-17
検索条件に一致するファイルはありません
+3
-4
@@ -1,7 +1,6 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using ComputeSharp.D2D1.__Internals;
|
||||
using ComputeSharp.D2D1.SourceGenerators.Models;
|
||||
using ComputeSharp.SourceGeneration.Helpers;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.CSharp;
|
||||
@@ -22,10 +21,10 @@ partial class ID2D1ShaderGenerator
|
||||
/// <summary>
|
||||
/// Creates a <see cref="PropertyDeclarationSyntax"/> instance for the <c>EffectId</c> property.
|
||||
/// </summary>
|
||||
/// <param name="info">The input <see cref="EffectIdInfo"/> instance.</param>
|
||||
/// <param name="info">The input <see cref="EquatableArray{T}"/> instance with the effect GUID.</param>
|
||||
/// <param name="fixup">An opaque <see cref="Func{TResult}"/> instance to transform the final tree into text.</param>
|
||||
/// <returns>The resulting <see cref="PropertyDeclarationSyntax"/> instance for the <c>EffectId</c> property.</returns>
|
||||
public static PropertyDeclarationSyntax GetSyntax(EffectIdInfo info, out Func<SyntaxNode, SourceText> fixup)
|
||||
public static PropertyDeclarationSyntax GetSyntax(EquatableArray<byte> info, out Func<SyntaxNode, SourceText> fixup)
|
||||
{
|
||||
// Create the local declaration:
|
||||
//
|
||||
@@ -48,7 +47,7 @@ partial class ID2D1ShaderGenerator
|
||||
SingletonSeparatedList<ExpressionSyntax>(IdentifierName("__EMBEDDED_EFFECT_ID_BYTES"))))))));
|
||||
|
||||
// Prepare the initialization text
|
||||
string effectIdLiterals = SyntaxFormattingHelper.BuildByteArrayInitializationExpressionString(info.Bytes.AsSpan());
|
||||
string effectIdLiterals = SyntaxFormattingHelper.BuildByteArrayInitializationExpressionString(info.AsSpan());
|
||||
|
||||
// Set the fixup function
|
||||
fixup = tree => SourceText.From(tree.ToFullString().Replace("__EMBEDDED_EFFECT_ID_BYTES", effectIdLiterals), Encoding.UTF8);
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする