On 14 September 2015 at 11:12, Riccardo Bortolato rikyz619@gmail.com wrote:
In patch 3/6 the decision to use wined3d_volume_map() or wined3d_surface_map() should probably go through wined3d_texture_ops.
About this one, what did you have in mind? an intermediate function that casts the correct type from a resource and calls the proper mapping function?
More or less. You'd have e.g. a texture2d_sub_resource_map() function that would call wined3d_surface_map(surface_from_resource(sub_resource), ...). And then eventually wined3d_surface_map() would just get merged into texture2d_sub_resource_map().