/// <summary>
 /// Element-wise equality.
 /// </summary>
 /// <param name="other">The instance to compare to.</param>
 /// <returns>True if all elements are equal; false otherswise.</returns>
 public bool Equals(TextureViewDescription other)
 {
     return(Target.Equals(other.Target) &&
            BaseMipLevel.Equals(other.BaseMipLevel) &&
            MipLevels.Equals(other.MipLevels) &&
            BaseArrayLayer.Equals(other.BaseArrayLayer) &&
            ArrayLayers.Equals(other.ArrayLayers));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Element-wise equality.
 /// </summary>
 /// <param name="other">The instance to compare to.</param>
 /// <returns>True if all elements and all array elements are equal; false otherswise.</returns>
 public bool Equals(FramebufferAttachmentDescription other)
 {
     return(Target.Equals(other.Target) && ArrayLayer.Equals(other.ArrayLayer) && MipLevel.Equals(other.MipLevel));
 }
Ejemplo n.º 3
0
 public bool Equals(TextureViewDescription other)
 {
     return(Target.Equals(other.Target));
 }
Ejemplo n.º 4
0
 public bool Equals(FramebufferDescription other)
 {
     return(DepthTarget.Equals(other.DepthTarget) && Util.ArrayEquals(ColorTargets, other.ColorTargets));
 }