using System.Runtime.InteropServices; namespace ComputeSharp.D2D1.Interop; /// /// A type containing info on a description for a given D2D1 pixel shader resource resource. /// [StructLayout(LayoutKind.Sequential)] 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; /// /// 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; }