using System; namespace ComputeSharp.D2D1; /// /// An attribute for a D2D1 shader with a description on the resulting output buffer. /// Using this attribute is optional when defining a D2D1 shader. /// /// /// For more info, see . /// [AttributeUsage(AttributeTargets.Struct, AllowMultiple = false)] public sealed class D2DOutputBufferAttribute : Attribute { /// /// Creates a new instance of the type with the specified arguments. /// /// The buffer precision for the resulting output buffer. public D2DOutputBufferAttribute(D2D1BufferPrecision bufferPrecision) { BufferPrecision = bufferPrecision; } /// /// Creates a new instance of the type with the specified arguments. /// /// The channel depth for the resulting output buffer. public D2DOutputBufferAttribute(D2D1ChannelDepth channelDepth) { ChannelDepth = channelDepth; } /// /// Creates a new instance of the type with the specified arguments. /// /// The buffer precision for the resulting output buffer. /// The channel depth for the resulting output buffer. public D2DOutputBufferAttribute(D2D1BufferPrecision bufferPrecision, D2D1ChannelDepth channelDepth) { BufferPrecision = bufferPrecision; ChannelDepth = channelDepth; } /// /// Gets the buffer precision for the resulting output buffer. /// public D2D1BufferPrecision BufferPrecision { get; } /// /// Gets the channel depth for the resulting output buffer. /// public D2D1ChannelDepth ChannelDepth { get; } }