public bool Equals(PipelineDescription other) { return(BlendState.Equals(other.BlendState) && DepthStencilState.Equals(other.DepthStencilState) && RasterizerState.Equals(other.RasterizerState) && PrimitiveTopology == other.PrimitiveTopology && ShaderSet.Equals(other.ShaderSet) && Util.ArrayEquals(ResourceLayouts, other.ResourceLayouts) && Outputs.Equals(other.Outputs)); }
/// <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(GraphicsPipelineDescription other) { return(BlendState.Equals(other.BlendState) && DepthStencilState.Equals(other.DepthStencilState) && RasterizerState.Equals(other.RasterizerState) && PrimitiveTopology == other.PrimitiveTopology && ShaderSet.Equals(other.ShaderSet) && Util.ArrayEquals(ResourceLayouts, other.ResourceLayouts) && (ResourceBindingModel.HasValue && other.ResourceBindingModel.HasValue ? ResourceBindingModel.Value == other.ResourceBindingModel.Value : ResourceBindingModel.HasValue == other.ResourceBindingModel.HasValue) && Outputs.Equals(other.Outputs)); }