I'm trying to add edge detection post process which I tried to base off different demos, but I can't seem get it to work.
I try to compile shader with "ps_4_0_level_9_1" (have to keep it DX9 compatible) but it throws: "error X4532: cannot map expression to pixel shader instruction set" at line 11, but on other hand it works with "ps_4_0".
I usually end up doing the offset manually anyway for cross-platform reasons, and also ever since I hit an Nvidia driver bug where using the offset with SampleCmp caused my app to crash. The offsets also have to be hard-coded, which means you can't use them in a dynamic loop or have the offset based on some other calculation which limits its usefulness.