Remove unnecessary constructors

このコミットが含まれているのは:
Sergio Pedri committed 2022-12-22 10:56:03 -08:00
1 親 a91ed7b70d
コミット 91ef70907b
2ファイル変更
+6 -24

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

+3 -13
ファイルの表示
@@ -1,3 +1,5 @@
using System.Runtime.InteropServices;
namespace ComputeSharp.D2D1.Interop;
/// <summary>
@@ -7,6 +9,7 @@ namespace ComputeSharp.D2D1.Interop;
/// <para>This type exposes the values that can be set via <c>ID2D1RenderInfo::SetInputDescription</c>.</para>
/// <para>For more info, see <see href="https://docs.microsoft.com/windows/win32/api/d2d1effectauthor/nf-d2d1effectauthor-id2d1renderinfo-setinputdescription"/>.</para>
/// </remarks>
[StructLayout(LayoutKind.Sequential)]
public readonly struct D2D1InputDescription
{
/// <summary>
@@ -30,19 +33,6 @@ public readonly struct D2D1InputDescription
/// </summary>
private readonly int levelOfDetailCount;
/// <summary>
/// Creates a new <see cref="D2D1InputDescription"/> instance with the specified parameters.
/// </summary>
/// <param name="index">The index of the resource the description belongs to.</param>
/// <param name="filter">The type of filter to apply to the input texture.</param>
/// <param name="levelOfDetailCount">The mip level to retrieve from the upstream transform, if specified.</param>
internal D2D1InputDescription(int index, D2D1Filter filter, int levelOfDetailCount)
{
this.index = index;
this.filter = filter;
this.levelOfDetailCount = levelOfDetailCount;
}
/// <summary>
/// Gets the index of the resource the description belongs to.
/// </summary>
+3 -11
ファイルの表示
@@ -1,8 +1,11 @@
using System.Runtime.InteropServices;
namespace ComputeSharp.D2D1.Interop;
/// <summary>
/// A type containing info on a description for a given D2D1 pixel shader resource resource.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public readonly struct D2D1ResourceTextureDescription
{
/// <summary>
@@ -16,17 +19,6 @@ public readonly struct D2D1ResourceTextureDescription
/// </summary>
private readonly int dimensions;
/// <summary>
/// Creates a new <see cref="D2D1ResourceTextureDescription"/> instance with the specified parameters.
/// </summary>
/// <param name="index">The index of the resource texture the description belongs to.</param>
/// <param name="dimensions">The number of dimensions of the resource texture the description belongs to.</param>
internal D2D1ResourceTextureDescription(int index, int dimensions)
{
this.index = index;
this.dimensions = dimensions;
}
/// <summary>
/// Gets the index of the resource texture the description belongs to.
/// </summary>