Fix GetData for Texture3D.Directx

This fix is similar to #2622, but I haven't added support for elementCount and I haven't tested it.