zezba9000
zezba9000

Reputation: 3383

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

Upvotes: 1

Views: 399

Answers (1)

Goz
Goz

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

Related Questions