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
ファイルの表示
@@ -32,20 +32,12 @@ namespace ComputeSharp.D2D1;
/// to further customize the shader profile to use when compiling the HLSL source, and the compile options to use.
/// </para>
/// </summary>
/// <param name="hlslSource">The number of texture inputs for the shader.</param>
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public sealed class D2DPixelShaderSourceAttribute : Attribute
public sealed class D2DPixelShaderSourceAttribute([StringSyntax("Hlsl")] string hlslSource) : Attribute
{
/// <summary>
/// Creates a new instance of the <see cref="D2DPixelShaderSourceAttribute"/> type with the specified arguments.
/// </summary>
/// <param name="hlslSource">The number of texture inputs for the shader.</param>
public D2DPixelShaderSourceAttribute([StringSyntax("Hlsl")] string hlslSource)
{
HlslSource = hlslSource;
}
/// <summary>
/// Gets the number of texture inputs for the shader.
/// </summary>
public string HlslSource { get; }
public string HlslSource => hlslSource;
}