public bool Equals(PipelineStateDescriptionWithHash other)
 {
     return(Hash == other.Hash && (State == null) == (other.State == null) && (State?.Equals(other.State) ?? true));
 }