Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17625

DirectX 11: Enable Depth Buffer View hides all geometry

$
0
0

I'm adding support for dx11 and I ran into some issues. It renders fine without a depth buffer view, but when I attach it, my triangle gets hidden and I see only a blank screen. In the debugger, the triangle is rendered at a depth of 0.5. It should not be culled. But it is visible in the pipeline. Viewport min/max depth are 0/1, depth is attached, and cleared. I don't know why I just have a blank cleared screen.

enter image description here
device_->CreateRenderTargetView(pBackBuffer, NULL, &backbuffer_);
pBackBuffer->Release();

unsigned int width, height;
window_->getWindowSize(width, height);

D3D11_TEXTURE2D_DESC depth_stencil_desc …

Viewing all articles
Browse latest Browse all 17625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>