Sign in to follow this  

Cg interfaces

Recommended Posts

marco1475    122
Hi! Has anyone here any experience with Cg shader interfaces? I know how to create and bind them in a single Cg program and all that jazz, but I would like to keep all my interfaces in an external file, so that I do not have to declare them in every Cg program I use. And afaik Cg doesn't support #include. How can I keep my interfaces in a separate file and then use them in different Cg programs? Thx for any help you can provide. Marek

Share this post

Link to post
Share on other sites
SirKnight    316
Original post by marco1475
And afaik Cg doesn't support #include.

Sure it does. Cg always supported includes. Check out the interface examples that come with the Cg installer (they're for OpenGL BTW).


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