using System;
namespace ComputeSharp.D2D1;
///
/// An attribute for a D2D1 shader indicating the description of a given input resource.
/// This attribute is optional, and not using it will cause no description to be declared.
///
///
/// This attribute exposes the options that can be set via D2D1_INPUT_DESCRIPTION.
/// For more info, see .
///
/// The index of the resource to declare the description for.
/// The type of filter to apply to the input texture.
[AttributeUsage(AttributeTargets.Struct, AllowMultiple = true)]
public sealed class D2DInputDescriptionAttribute(int index, D2D1Filter filter) : Attribute
{
///
/// Gets the index of the resource to declare the description for.
///
public int Index { get; } = index;
///
/// Gets the type of filter to apply to the input texture.
///
public D2D1Filter Filter { get; } = filter;
///
/// Gets the mip level to retrieve from the upstream transform, if specified.
///
public int LevelOfDetailCount { get; init; }
}