21 Oct
2015
21 Oct
'15
10:04 a.m.
What is your preferred solution then? Ciao, Riccardo 2015-10-21 15:11 GMT+02:00 Henri Verbeet <hverbeet(a)gmail.com>:
On 20 October 2015 at 21:13, Riccardo Bortolato <rikyz619(a)gmail.com> wrote:
Well if instead of
+ resource = wined3d_texture_get_resource(surface->wined3d_texture);
I call wined3d_texture_get_sub_resource() then once control goes back to wined3d we can know texture_level and texture_layer for that particular surface (casting the surface from the subresource e.g. in wined3d_rendertarget_view_init()).
That would work in principle, but I don't think it's what we want.