Now using long instead of ulong for shared texture pins, since ulong does not display properly in ui

Attempting to share a multisampled/multiple mip levels texture will now throw an exception