public ColorTransferState stateCopy()
    {
        ColorTransferState s = new ColorTransferState();

        s.currentTexture = currentTexture;
        s.colorSpace     = colorSpace;
        s.varianceScale  = varianceScale;
        s.quality        = quality;
        return(s);
    }
 public bool SameState(ColorTransferState s)
 {
     if (null == s)
     {
         return(false);
     }
     return(s.currentTexture == currentTexture &&
            s.colorSpace == colorSpace &&
            s.varianceScale == varianceScale &&
            s.quality == quality);
 }