public void Dispose() { T *pointer = ptr_; if (pointer != null) { ptr_ = null; D3d12maObjDeleter <T> .Invoke(pointer); } }
public void reset(T *_Ptr = null) { T *_Old = ptr_; ptr_ = _Ptr; if (_Old != null) { D3d12maObjDeleter <T> .Invoke(_Old); } }