public static IntPtr GetUnmanagedTexture(Texture texture)
 {
   return texture.GetObjectByValue(magicConstant);
 }