namespace ComputeSharp.D2D1.Interop; /// /// A type containing info on a description for a given D2D1 pixel shader input resource. /// /// /// This type exposes the values that can be set via ID2D1RenderInfo::SetInputDescription. /// For more info, see . /// public readonly struct D2D1InputDescription { /// /// Creates a new instance with the specified parameters. /// /// The index of the resource the description belongs to. /// The type of filter to apply to the input texture. /// The mip level to retrieve from the upstream transform, if specified. internal D2D1InputDescription(int index, D2D1Filter filter, int levelOfDetailCount) { Index = index; Filter = filter; LevelOfDetailCount = levelOfDetailCount; } /// /// Gets the index of the resource the description belongs to. /// public int Index { get; } /// /// Gets the type of filter to apply to the input texture. /// public D2D1Filter Filter { get; } /// /// Gets the mip level to retrieve from the upstream transform, if specified. /// public int LevelOfDetailCount { get; } }