Add D2D1ResourceTextureDescription type
このコミットが含まれているのは:
1 親
abb1d46a2d
コミット
9199e0c6b9
3ファイル変更
+30
-4
検索条件に一致するファイルはありません
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
|
||||
namespace ComputeSharp.D2D1.Interop;
|
||||
namespace ComputeSharp.D2D1.Interop;
|
||||
|
||||
/// <summary>
|
||||
/// A type containing info on a description for a given D2D1 pixel shader input resource.
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
namespace ComputeSharp.D2D1.Interop;
|
||||
|
||||
/// <summary>
|
||||
/// A type containing info on a description for a given D2D1 pixel shader resource resource.
|
||||
/// </summary>
|
||||
public readonly struct D2D1ResourceTextureDescription
|
||||
{
|
||||
/// <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="rank">The rank of the resource texture the description belongs to.</param>
|
||||
internal D2D1ResourceTextureDescription(int index, int rank)
|
||||
{
|
||||
Index = index;
|
||||
Rank = rank;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the index of the resource texture the description belongs to.
|
||||
/// </summary>
|
||||
public int Index { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the rank of the resource texture the description belongs to.
|
||||
/// </summary>
|
||||
public int Rank { get; }
|
||||
}
|
||||
@@ -22,7 +22,7 @@ internal unsafe struct D2D1BufferSizeDispatchDataLoader : ID2D1DispatchDataLoade
|
||||
/// </summary>
|
||||
/// <returns>The size of the constant buffer.</returns>
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public int GetConstantBufferSize()
|
||||
private int GetConstantBufferSize()
|
||||
{
|
||||
return this.size;
|
||||
}
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする