[D3D12] Scissor Rectangle Culling

Started by
1 comment, last by _void_ 8 years, 7 months ago
Hello,
Do you know if scissor rectangle culling has become always enabled in D3D12?
In D3D11 you could specify it as part of D3D11_RASTERIZER_DESC. According to the remarks https://msdn.microsoft.com/en-us/library/windows/desktop/dn903899(v=vs.85).aspx, it could be enabled/disabled as part of D3D12_RASTERIZER_DESC. However, it is missing from there in fact.
I am getting a warning from the debug layer without setting scissor rect "ID3D12CommandList::DrawIndexedInstanced: Viewport: 0 is non-empty while the coressponding scissor rectangle is empty."
Thanks!

?

Advertisement
Yeah, that's very weird. I did a grep through the headers, and I couldn't find anything for enabling or disabling the scissor test. I guess that you need to always set it to the viewport size if you don't want anything to be culled.

Thanks MJP!

This topic is closed to new replies.

Advertisement