how to call a cg function in another cg function

Hi, all

Sorry to bother you. I wrote three cg functions which implemented color segmentation, erosion and dilation. Is there anyway i can do to call one in another? For example, can i call color segmentation cg function in Dilation cg functionl? I just touched cg programming two weeks ago. I really appreciate your help! Thanks again.


This forum is for questions about CUDA only. Maybe try the forums?

evandong83, you should consider trying OpenGL forums.

But to answer your question this time, YES. You can call Cg functions that are in the same Cg file. :shifty: