Rewrite D2DPixelShaderSourceGenerator with new infra
このコミットが含まれているのは:
1 親
1afd5a02d3
コミット
7679ae2d2b
8ファイル変更
+138
-271
検索条件に一致するファイルはありません
@@ -7,9 +7,17 @@ namespace ComputeSharp.D2D1.SourceGenerators.Models;
|
||||
/// A model representing all necessary info for a full generation pass for a [D2D1PixelShaderSource] attribute.
|
||||
/// </summary>
|
||||
/// <param name="Hierarchy">The hierarchy info for the shader type.</param>
|
||||
/// <param name="HlslShaderMethodSource">The processed HLSL source for the shader.</param>
|
||||
/// <param name="Modifiers">The modifiers for the annotated method (these are <see cref="Microsoft.CodeAnalysis.CSharp.SyntaxKind"/> values, which can't be equated directly).</param>
|
||||
/// <param name="MethodName">The name of the annotated method.</param>
|
||||
/// <param name="InvalidReturnType">The fully qualified name of the return type, if invalid.</param>
|
||||
/// <param name="HlslInfoKey">The key with processed info on the shader.</param>
|
||||
/// <param name="HlslInfo">The value with processed info on the shader.</param>
|
||||
/// <param name="Diagnostcs">The discovered diagnostics, if any.</param>
|
||||
internal sealed record D2D1PixelShaderSourceInfo(
|
||||
HierarchyInfo Hierarchy,
|
||||
HlslShaderMethodSourceInfo HlslShaderMethodSource,
|
||||
EquatableArray<ushort> Modifiers,
|
||||
string MethodName,
|
||||
string? InvalidReturnType,
|
||||
HlslBytecodeInfoKey HlslInfoKey,
|
||||
HlslBytecodeInfo HlslInfo,
|
||||
EquatableArray<DiagnosticInfo> Diagnostcs);
|
||||
@@ -1,18 +0,0 @@
|
||||
using ComputeSharp.SourceGeneration.Helpers;
|
||||
|
||||
namespace ComputeSharp.D2D1.SourceGenerators.Models;
|
||||
|
||||
/// <summary>
|
||||
/// A model representing info on a shader method that has requested to be precompiled at build time.
|
||||
/// </summary>
|
||||
/// <param name="Modifiers">The modifiers for the annotated method (these are <see cref="Microsoft.CodeAnalysis.CSharp.SyntaxKind"/> values, which can't be equated directly).</param>
|
||||
/// <param name="MethodName">The name of the annotated method.</param>
|
||||
/// <param name="InvalidReturnType">The fully qualified name of the return type, if invalid.</param>
|
||||
/// <param name="HlslSource">The HLSL source.</param>
|
||||
/// <param name="Bytecode">The compiled shader bytecode, if available.</param>
|
||||
internal sealed record EmbeddedBytecodeMethodInfo(
|
||||
EquatableArray<ushort> Modifiers,
|
||||
string MethodName,
|
||||
string? InvalidReturnType,
|
||||
string HlslSource,
|
||||
EquatableArray<byte> Bytecode);
|
||||
@@ -1,22 +0,0 @@
|
||||
using ComputeSharp.SourceGeneration.Helpers;
|
||||
|
||||
namespace ComputeSharp.D2D1.SourceGenerators.Models;
|
||||
|
||||
/// <summary>
|
||||
/// A model for extracted info on a processed HLSL shader method.
|
||||
/// </summary>
|
||||
/// <param name="Modifiers">The modifiers for the annotated method (these are <see cref="Microsoft.CodeAnalysis.CSharp.SyntaxKind"/> values, which can't be equated directly).</param>
|
||||
/// <param name="MethodName">The name of the annotated method.</param>
|
||||
/// <param name="InvalidReturnType">The fully qualified name of the return type, if invalid.</param>
|
||||
/// <param name="HlslSource">The HLSL source.</param>
|
||||
/// <param name="ShaderProfile">The shader profile to use to compile the shader.</param>
|
||||
/// <param name="CompileOptions">The compile options to use to compile the shader.</param>
|
||||
/// <param name="HasErrors">Whether any errors have been detected, and therefore the shader compilation should be skipped.</param>
|
||||
internal sealed record HlslShaderMethodSourceInfo(
|
||||
EquatableArray<ushort> Modifiers,
|
||||
string MethodName,
|
||||
string? InvalidReturnType,
|
||||
string HlslSource,
|
||||
D2D1ShaderProfile ShaderProfile,
|
||||
D2D1CompileOptions CompileOptions,
|
||||
bool HasErrors);
|
||||
新しいイシューから参照
ユーザーをブロックする