Original Post
According to the Cg compiler, the maximum number of instructions in a fragment program for the fp40 profile is something like 4096. However, I want to iterate a number of commands 32*32 times, and if unrolled it definitely ends up being much more than the limit. Is there a way around this or is there a profile that accepts more instructions that this? I read in GPU Gems 2 that the Shader Model 3.0 for GeForce 6 series GPUs (I'm using a nvidia 6800gt) accepts up to 65,536 instructions for a fragment program, which is enough for what I need. According to this book, that is. Any suggestions to this problem would be greatly appreciated.