Enable diagnostics generation for LoadDispatchData()
このコミットが含まれているのは:
1 親
b912b4f076
コミット
8c0637e363
5ファイル変更
+101
-29
検索条件に一致するファイルはありません
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Immutable;
|
||||
|
||||
namespace ComputeSharp.SourceGenerators.Models;
|
||||
|
||||
/// <summary>
|
||||
/// A model representing gathered info on a shader dispatch data.
|
||||
/// </summary>
|
||||
/// <param name="Hierarchy">The hierarchy data for the shader.</param>
|
||||
/// <param name="Type">The shader interface type.</param>
|
||||
/// <param name="FieldInfos">The description on shader instance fields.</param>
|
||||
/// <param name="ResourceCount">The total number of captured resources.</param>
|
||||
/// <param name="Root32BitConstantCount">The size of the shader root signature, in 32 bit constants.</param>
|
||||
internal sealed record DispatchDataInfo(
|
||||
HierarchyInfo Hierarchy,
|
||||
Type Type,
|
||||
ImmutableArray<FieldInfo> FieldInfos,
|
||||
int ResourceCount,
|
||||
int Root32BitConstantCount);
|
||||
@@ -0,0 +1,12 @@
|
||||
using System.Collections.Immutable;
|
||||
using Microsoft.CodeAnalysis;
|
||||
|
||||
namespace ComputeSharp.SourceGenerators.Models;
|
||||
|
||||
/// <summary>
|
||||
/// A model representing a value and an associated set of diagnostic errors.
|
||||
/// </summary>
|
||||
/// <typeparam name="TValue">The type of the wrapped value.</typeparam>
|
||||
/// <param name="Value">The wrapped value for the current result.</param>
|
||||
/// <param name="Errors">The associated diagnostic errors, if any.</param>
|
||||
internal sealed record Result<TValue>(TValue Value, ImmutableArray<Diagnostic> Errors);
|
||||
新しいイシューから参照
ユーザーをブロックする