Reputation: 3383
In D3D10 there is a method I can use for getting back a single surface from a Texture2D with one mipmap lvl.
{
IDXGISurface* surface;
texture2D->QueryInterface(__uuidof(IDXGISurface), (LPVOID*)&surface);
}
But this will not work with a texture that has more then one mipmap, So how can I get back all the surfaces from the mipmap chain ??
Upvotes: 1
Views: 399
Reputation: 62323
You can't. If you want to get at the specific pixel data you will need to use map (if you can). If you need an IDXGISurface then you'll simply have to not use mipmapping.
Upvotes: 1