wined3d: Introduce a wined3d_texture_update_sub_resource() helper.