Remove ShaderType type, simplify code

このコミットが含まれているのは:
Sergio Pedri committed 2023-10-13 23:07:48 +02:00
1 親 61f155bfb6
コミット bad605164a
6ファイル変更
+33 -51

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

+2 -2
ファイルの表示
@@ -5,12 +5,12 @@ namespace ComputeSharp.SourceGenerators.Models;
/// <summary>
/// A model representing gathered info on a shader dispatch data.
/// </summary>
/// <param name="Type">The shader interface type.</param>
/// <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(
ShaderType Type,
bool IsPixelShaderLike,
EquatableArray<FieldInfo> FieldInfos,
int ResourceCount,
int Root32BitConstantCount);
-17
ファイルの表示
@@ -1,17 +0,0 @@
namespace ComputeSharp.SourceGenerators.Models;
/// <summary>
/// Indicates a type of shader being processed.
/// </summary>
public enum ShaderType
{
/// <summary>
/// A compute shader.
/// </summary>
ComputeShader,
/// <summary>
/// A pixel shader.
/// </summary>
PixelShader
}