public LUT3D Reset(int dim) { if (_3dlut == null || _dim != dim) { _dim = dim; _3dlut.DestroySelf(); _3dlut = Create3DLutTex(dim); } SetDefault(); return(this); }