using ComputeSharp.SourceGeneration.Helpers; using ComputeSharp.SourceGeneration.Models; namespace ComputeSharp.SourceGenerators.Models; /// /// A model representing all necessary info for a full generation pass for a shader. /// /// The hierarchy info for the shader type. /// The thread ids value for the X axis. /// The thread ids value for the Y axis. /// The thread ids value for the Z axis. /// Whether the compute shader is "pixel shader like", ie. outputting a pixel into a target texture. /// Whether or not the static sampler is used. /// The size of the shader constant buffer. /// The description on shader instance fields. /// The description on shader captured resources. /// The sequence of resource descriptors for the shader. /// The key with processed info on the shader. /// The value with processed info on the shader. /// The discovered diagnostics, if any. internal sealed record ShaderInfo( HierarchyInfo Hierarchy, int ThreadsX, int ThreadsY, int ThreadsZ, bool IsPixelShaderLike, bool IsSamplerUsed, int ConstantBufferSizeInBytes, EquatableArray Fields, EquatableArray Resources, EquatableArray ResourceDescriptors, HlslBytecodeInfoKey HlslInfoKey, HlslBytecodeInfo HlslInfo, EquatableArray Diagnostcs) : IConstantBufferInfo;