Rotating Shaders?

I have been using CRT-Easymode shader, and have noticed when using shaders with MAME and specifically vertical games where you rotate your screen that the shader doesnt rotates so the scanlines are the wrong way. Is there a universal way to somehow rotate shaders at all?

You can use settings > video > rotation or a rotation matrix inside the shader but that will rotate the whole thing, game and all. For some shaders, you can just replace every instance of *.x with *.y and vice versa but that doesn’t always work, and some shaders rely on specific subpixel behavior and don’t look right rotated.