using System;
namespace ComputeSharp.D2D1;
///
/// An attribute for a D2D1 shader indicating that an input resource at a specified index uses complex sampling.
/// This attribute is optional, and not using it will cause inputs to default to complex sampling as well.
///
///
/// This attribute directly maps to #define D2D_INPUT<N>_COMPLEX.
/// For more info, see .
///
/// The index of the resource to declare as using complex sampling.
[AttributeUsage(AttributeTargets.Struct, AllowMultiple = true)]
public sealed class D2DInputComplexAttribute(int index) : Attribute
{
///
/// Gets the index of the resource declared as using complex sampling.
///
public int Index { get; } = index;
}