Hi Guys,
i am trying to get depth from backbuffer directly, but depthstencil view comes as NULL, here is the code …
ENQUEUE_RENDER_COMMAND(void)(
[this, dx11Texture, Context](FRHICommandListImmediate& RHICmdList)
{
ID3D11DepthStencilView* View = nullptr;
Context->OMGetRenderTargets( 1, nullptr, &View );
Context->Flush();
if (View)
{
View->GetResource(&m_TargetDepthTexture);
Context->Flush();
}
});
please guide me how to get depth from backbuffer directly … is there any faster way then scenecapture and using a render target texture , even this is problemetic RTF_R32F is not working so i was using PF_rgbaFLOAT, how ever, i want to get depth buffer with depth value in range of 0 … 1.
is there a possibility.
thanks …