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.

device_->CreateRenderTargetView(pBackBuffer, NULL, &backbuffer_);
pBackBuffer->Release();
unsigned int width, height;
window_->getWindowSize(width, height);
D3D11_TEXTURE2D_DESC depth_stencil_desc …