wined3d: Retrieve the surface's texture name through a function.