Streamline ShaderInfo model, remove secondary models
このコミットが含まれているのは:
1 親
2c8d0d2385
コミット
8c3b9be08f
13ファイル変更
+104
-138
検索条件に一致するファイルはありません
@@ -1,16 +0,0 @@
|
||||
using ComputeSharp.SourceGeneration.Helpers;
|
||||
|
||||
namespace ComputeSharp.SourceGenerators.Models;
|
||||
|
||||
/// <summary>
|
||||
/// A model representing gathered info on a shader dispatch data.
|
||||
/// </summary>
|
||||
/// <param name="IsPixelShaderLike">Whether the compute shader is "pixel shader like", ie. outputting a pixel into a target texture.</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(
|
||||
bool IsPixelShaderLike,
|
||||
EquatableArray<FieldInfo> FieldInfos,
|
||||
int ResourceCount,
|
||||
int Root32BitConstantCount);
|
||||
@@ -1,11 +0,0 @@
|
||||
using ComputeSharp.SourceGeneration.Helpers;
|
||||
|
||||
namespace ComputeSharp.SourceGenerators.Models;
|
||||
|
||||
/// <summary>
|
||||
/// A model containing info on shader dispatch metadata.
|
||||
/// </summary>
|
||||
/// <param name="Root32BitConstantCount">The size of the shader root signature, in 32 bit constants.</param>
|
||||
/// <param name="IsSamplerUsed">Whether or not the static sampler is used.</param>
|
||||
/// <param name="ResourceDescriptors">The sequence of resource descriptors for the shader.</param>
|
||||
internal sealed record DispatchMetadataInfo(int Root32BitConstantCount, bool IsSamplerUsed, EquatableArray<ResourceDescriptor> ResourceDescriptors);
|
||||
@@ -1,8 +0,0 @@
|
||||
namespace ComputeSharp.SourceGenerators.Models;
|
||||
|
||||
/// <summary>
|
||||
/// A model for extracted info on a processed HLSL shader.
|
||||
/// </summary>
|
||||
/// <param name="HlslSource">The HLSL source for the shader.</param>
|
||||
/// <param name="IsSamplerUsed">Whether or not the static sampler is used.</param>
|
||||
internal sealed record HlslShaderSourceInfo(string HlslSource, bool IsSamplerUsed);
|
||||
@@ -7,17 +7,27 @@ namespace ComputeSharp.SourceGenerators.Models;
|
||||
/// A model representing all necessary info for a full generation pass for a shader.
|
||||
/// </summary>
|
||||
/// <param name="Hierarchy">The hierarchy info for the shader type.</param>
|
||||
/// <param name="DispatchData">The gathered shader dispatch data.</param>
|
||||
/// <param name="DispatchMetadata">The gathered shader dispatch metadata.</param>
|
||||
/// <param name="HlslShaderSource">The processed HLSL source for the shader.</param>
|
||||
/// <param name="ThreadsX">The thread ids value for the X axis.</param>
|
||||
/// <param name="ThreadsY">The thread ids value for the Y axis.</param>
|
||||
/// <param name="ThreadsZ">The thread ids value for the Z axis.</param>
|
||||
/// <param name="IsPixelShaderLike">Whether the compute shader is "pixel shader like", ie. outputting a pixel into a target texture.</param>
|
||||
/// <param name="IsSamplerUsed">Whether or not the static sampler is used.</param>
|
||||
/// <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="HlslInfo">The value with processed info on the shader.</param>
|
||||
/// <param name="ThreadIds">The thread ids for the shader, if compilation is requested.</param>
|
||||
/// <param name="Diagnostcs">The discovered diagnostics, if any.</param>
|
||||
internal sealed record ShaderInfo(
|
||||
HierarchyInfo Hierarchy,
|
||||
DispatchDataInfo DispatchData,
|
||||
DispatchMetadataInfo DispatchMetadata,
|
||||
HlslShaderSourceInfo HlslShaderSource,
|
||||
int ThreadsX,
|
||||
int ThreadsY,
|
||||
int ThreadsZ,
|
||||
bool IsPixelShaderLike,
|
||||
bool IsSamplerUsed,
|
||||
EquatableArray<FieldInfo> Fields,
|
||||
EquatableArray<ResourceDescriptor> ResourceDescriptors,
|
||||
int Root32BitConstantCount,
|
||||
string HlslSource,
|
||||
HlslBytecodeInfo HlslInfo,
|
||||
ThreadIdsInfo ThreadIds,
|
||||
EquatableArray<DiagnosticInfo> Diagnostcs);
|
||||
@@ -1,10 +0,0 @@
|
||||
namespace ComputeSharp.SourceGenerators.Models;
|
||||
|
||||
/// <summary>
|
||||
/// A model representing gathered info on a embedded thread ids.
|
||||
/// </summary>
|
||||
/// <param name="IsDefault">Whether the values are discarded.</param>
|
||||
/// <param name="X">The thread ids value for the X axis.</param>
|
||||
/// <param name="Y">The thread ids value for the Y axis.</param>
|
||||
/// <param name="Z">The thread ids value for the Z axis.</param>
|
||||
internal sealed record ThreadIdsInfo(bool IsDefault, int X, int Y, int Z);
|
||||
新しいイシューから参照
ユーザーをブロックする