• Advertisement
Sign in to follow this  

Specyfying macros with Cg runtime

This topic is 3331 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to use #ifdef's in my shaders and can't figure out how to pass information about these flags to a shader. As far as I found out it is possible to pass them as argument when calling cgc.exe. But how can I do this with Cg's API?

Share this post


Link to post
Share on other sites
Advertisement
OK, just found out that the last cgCreateProgram's argument is not shader main's arguments but the compiler's :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement