Use primary constructors in published projects

このコミットが含まれているのは:
Sergio Pedri committed 2023-11-20 23:06:21 +01:00
1 親 531e3c3b35
コミット 46a6b25756
54ファイル変更
+210 -564

検索条件に一致するファイルはありません

+3 -11
ファイルの表示
@@ -9,20 +9,12 @@ namespace ComputeSharp.D2D1;
/// <remarks>
/// For more info, see <see href="https://docs.microsoft.com/windows/win32/api/d2d1effectauthor/ne-d2d1effectauthor-d2d1_pixel_options"/>.
/// </remarks>
/// <param name="options">The options to specify for the shader.</param>
[AttributeUsage(AttributeTargets.Struct, AllowMultiple = false)]
public sealed class D2DPixelOptionsAttribute : Attribute
public sealed class D2DPixelOptionsAttribute(D2D1PixelOptions options) : Attribute
{
/// <summary>
/// Creates a new instance of the <see cref="D2DPixelOptionsAttribute"/> type with the specified arguments.
/// </summary>
/// <param name="options">The options to specify for the shader.</param>
public D2DPixelOptionsAttribute(D2D1PixelOptions options)
{
Options = options;
}
/// <summary>
/// Gets the options to specify for the shader.
/// </summary>
public D2D1PixelOptions Options { get; }
public D2D1PixelOptions Options => options;
}