Skip to main content
4 of 4
Updated link from deprecated msdn to newer docs.microsoft.com, moved raw URL into text link, added markdown to code in text
Pikalek
  • 13.4k
  • 5
  • 49
  • 54

You can create separate render target views for every slice and then set it using ID3D11DeviceContext::OMSetRenderTargets.

D3D11_RENDER_TARGET_VIEW_DESC desc;
desc.ViewDimension = D3D11_RTV_DIMENSION_TEXTURE2D;
desc.Texture2D.MipSlice = D3D11CalcSubresource(0, arraySlice, mipLevels);

Information about subresources.

KindDragon
  • 382
  • 1
  • 2
  • 10