texturesdirect3dmipmapsgeometry-surfacedirect3d10

How to get a list of MipMap surfaces from a d3d10 texture2d


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 ??


Solution

  • 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.