Compute Shader crashes / dynamic branching
I am trying to get some code running in my compute shader (#version 430 core, running under Windows 7, NVIDIA GeForce GTX 660) but it always crashes.
The exact same code runs fine when I execute it in a fragment shader.
I started commenting out parts of the code to find the solution to the problem.
It seems like the compute shader always crashes when I reapply some of my dynamic branching.
Does anyone know if the branching really could be the problem (hardware limitations, etc) and, if yes, how I can overcome that problem. Are there some clever hacks because I can't get rid of any branches.
Also, the branching happens in a for-loop which runs in a while loop.
Thanks a lot