On Wed May 24 20:23:01 2023 +0000, Zebediah Figura wrote:
It does, and I was considering saying that we should make it a HLSL op accordingly. On reflection, though, I decided we probably don't, but rather we probably want to do a "raising" peephole. I wouldn't be surprised if there are programs out there that spell out clip() as something like "if (any(x < 0)) discard". Then again, if I write that out in a shader, native d3dcompiler doesn't seem capable of optimizing that all the way down to texkill()...
I pushed something to implement clip() for pre-sm4 profiles using `texkill`.