Generate EffectId from derived type identifiers

このコミットが含まれているのは:
Sergio Pedri committed 2023-09-27 14:04:04 +02:00
1 親 c31572f68f
コミット 3303c0f2f3
6ファイル変更
+163 -17

検索条件に一致するファイルはありません

+2
ファイルの表示
@@ -7,6 +7,7 @@ namespace ComputeSharp.D2D1.SourceGenerators.Models;
/// A model representing all necessary info for a full generation pass for a D2D1 shader.
/// </summary>
/// <param name="Hierarchy">The hierarchy info for the shader type.</param>
/// <param name="EffectId">The effect id info for the shader type.</param>
/// <param name="DispatchData">The gathered shader dispatch data.</param>
/// <param name="InputTypes">The gathered input types for the shader.</param>
/// <param name="ResourceTextureDescriptions">The gathered resource texture descriptions for the shader.</param>
@@ -17,6 +18,7 @@ namespace ComputeSharp.D2D1.SourceGenerators.Models;
/// <param name="Diagnostcs">The discovered diagnostics, if any.</param>
internal sealed record D2D1ShaderInfo(
HierarchyInfo Hierarchy,
EffectIdInfo EffectId,
DispatchDataInfo DispatchData,
InputTypesInfo InputTypes,
ResourceTextureDescriptionsInfo ResourceTextureDescriptions,
+9
ファイルの表示
@@ -0,0 +1,9 @@
using ComputeSharp.SourceGeneration.Helpers;
namespace ComputeSharp.D2D1.SourceGenerators.Models;
/// <summary>
/// A model representing info to use to generate an effect id for a shader.
/// </summary>
/// <param name="Bytes">The bytes for the processed effect id.</param>
internal sealed record EffectIdInfo(EquatableArray<byte> Bytes);