D3D9 & Custom Clipping Planes (IDirect3DDevice9::SetClipPlane)
I've read in docs for the middleware we use that support for this can be flaky, but the D3D docs don't mention it. We're going as far back as the earliest hardware SM2.0 Intel GMA cards, basically the GMA950 & GMA3100, so开发者_运维百科 I'm trying to find out if these are old enough to have issues, or we're talking even older fixed-function-only chipsets.
Just don't bother with user clip planes. They are emulated in weird ways across drivers. Why do you really need them? If it is to optimize something you are going to get a small gain on some HW and pay a horrible price on other. If you need it for some algorithm do it yourself using a texkill and it will be reliable everywhere. Probably not the answer you wanted, but in general, just don't use it and rethink your approach.
精彩评论