I need to resolve the depth buffer texture. This depth/stencil buffer (ID3D11DepthStencilView*) I get every frame with such parameters (from it's desc):
SampleDesc.Count = 2;
SampleDesc.Quality = 0;
ArraySize = 1;
Format = DXGI_FORMAT_R24G8_TYPELESS;
And I need a simple non-MSAA depth buffer in the end. For use it with non-MSAA RenderTarget (I already have it). As I understand, I can not do this with hardware conversion - with DeviceContext->ResolveSubresource(...). It is possible to do this through a pixel shader. (?) But I still do not understand how to do it. If anyone has a solution to this problem(resolve depth texture) through a pixel shader please show it. Thank.
↧