Jump to content
  • Advertisement
Sign in to follow this  
maxest

Specyfying macros with Cg runtime

This topic is 3421 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!