Sign in to follow this  
spek

OpenGL Problems with Cg shaders on ATI cards

Recommended Posts

Being terrorized by an annoying "bug": how to get an OpenGL program with Cg shaders working on an ATI(or AMD) card?

I never used an ATI card, so I happily developed all my shaders in Cg without worries the last years. But now when trying to test it on a (modern) ATI card, it comes up with all kinds of errors. Loops not supported, tex2Darray problems, can't do vertex-texture-fetch, no geometry shaders, et cetera. And yes, that card can do all of that.

I think Cg picked a wrong/old profile. When using "cgGLGetLatestProfile", it comes with CG_PROFILE_ARBVP1 and CG_PROFILE_ARBFP1. Probably these profiles don't support the functions I mentioned, but what to pick else? I saw there is also a GLSL profile, but that requires to rewrite all shaders in GLSL right?


* I know there is a Cg forum as well on nVidia, but since answers are slow or not coming at all there, I thought let's ask here as well :)

Rick

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this