Cg shader crash at runtime, maximum instructions reached?
I have a problem with my cg geometry shader. It compiles fine, but it crashes at runtime.
The shader is very big, (approx. 2000 lines of codes) this is because I have a lot of if-sentences to decide which triangles sides
It has run fine before, but now when I add more code to it, it crashes at runtime.
Could it be that the shader has a limitation to maximum instructions at runtime? (which is not detected by the compiler?)
Where can I see the maximum number of instructions the geometry shader has?
I am using cg profile GP4VP for the vertex shader and GP4GP for the geometry shader.
The cg error I get at runtime is this: CG ERROR : "The program could not load."
Hope anyone can help,