How do you specify cg shader model?

How do you specify which shader model to use in a .cg shader?

I am getting a “temporary register limit 32 exceeded: 40 used”. This implies that the shader is being compiled with the cg equivalent of shader model 3.0.

How can I change this?

  • List item

I don’t know of any way to increase it. There may be something you can do in the context creation code, but I was never able to get anywhere with it when I tried (admittedly years ago). AFAIK, it’s dictated more by the cgc shader compiler and your GPU (Nvidia gets more capabilities than Intel/AMD GPUs).