namespace ComputeSharp.D2D1.Interop; /// /// A type containing info on a description for a given D2D1 pixel shader resource resource. /// public readonly struct D2D1ResourceTextureDescription { /// /// The index of the resource texture the description belongs to. /// /// See notes in for why explicit fields are used here. private readonly int index; /// /// The number of dimensions of the resource texture the description belongs to. /// private readonly int dimensions; /// /// Creates a new instance with the specified parameters. /// /// The index of the resource texture the description belongs to. /// The number of dimensions of the resource texture the description belongs to. internal D2D1ResourceTextureDescription(int index, int dimensions) { this.index = index; this.dimensions = dimensions; } /// /// Gets the index of the resource texture the description belongs to. /// public int Index => this.index; /// /// Gets the rank of the resource texture the description belongs to. /// public int Dimensions => this.dimensions; }