Add and adopt HlslBytecodeInfoKey model
このコミットが含まれているのは:
1 親
8c3b9be08f
コミット
af9338053b
5ファイル変更
+34
-14
検索条件に一致するファイルはありません
@@ -0,0 +1,10 @@
|
||||
using ComputeSharp.SourceGeneration.Models;
|
||||
|
||||
namespace ComputeSharp.SourceGenerators.Models;
|
||||
|
||||
/// <summary>
|
||||
/// A model with info to be a unique key for <see cref="HlslBytecodeInfo"/> instances.
|
||||
/// </summary>
|
||||
/// <param name="HlslSource">The input HLSL source code.</param>
|
||||
/// <param name="IsCompilationEnabled">Whether compilation should be attempted for the current info.</param>
|
||||
internal sealed record HlslBytecodeInfoKey(string HlslSource, bool IsCompilationEnabled);
|
||||
@@ -15,7 +15,7 @@ namespace ComputeSharp.SourceGenerators.Models;
|
||||
/// <param name="Fields">The description on shader instance fields.</param>
|
||||
/// <param name="ResourceDescriptors">The sequence of resource descriptors for the shader.</param>
|
||||
/// <param name="Root32BitConstantCount">The size of the shader root signature, in 32 bit constants.</param>
|
||||
/// <param name="HlslSource">The HLSL source for the shader.</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 ShaderInfo(
|
||||
@@ -28,6 +28,6 @@ internal sealed record ShaderInfo(
|
||||
EquatableArray<FieldInfo> Fields,
|
||||
EquatableArray<ResourceDescriptor> ResourceDescriptors,
|
||||
int Root32BitConstantCount,
|
||||
string HlslSource,
|
||||
HlslBytecodeInfoKey HlslInfoKey,
|
||||
HlslBytecodeInfo HlslInfo,
|
||||
EquatableArray<DiagnosticInfo> Diagnostcs);
|
||||
新しいイシューから参照
ユーザーをブロックする