/// <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));
 }
示例#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));
 }
 public bool Equals(TextureViewDescription other)
 {
     return(Target.Equals(other.Target));
 }
 public bool Equals(FramebufferDescription other)
 {
     return(DepthTarget.Equals(other.DepthTarget) && Util.ArrayEquals(ColorTargets, other.ColorTargets));
 }