I have found a few times differences between GPUs handling fragment shaders. One example was doing pow(x)
where x
is negative. One GPU handled it well while the other one failed.
Another situation was where I rewrote if()
statements with step()
statement and shader worked well. I blamed this to branching limit or something.
Now I am in situation where my fragment shader works on some GPUs and on some don't. I have tried to search for GPU/shader limits and similar information but found nothing.
The very current test which works everywhere I tried except on my GTX 780 is here online(Shadertoy)
I am asking for any directions or a link to shader limitations and most common issues in compatibility.