ファイル
ComputeSharp/src/ComputeSharp.D2D1/Shaders/Interop/D2D1ResourceTextureDescription.cs
T

29 行
1010 B
C#

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="dimensions">The number of dimensions of the resource texture the description belongs to.</param>
internal D2D1ResourceTextureDescription(int index, int dimensions)
{
Index = index;
Dimensions = dimensions;
}
/// <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 Dimensions { get; }
}