pocketmoon
09-21-2002, 10:55 PM
If I have more than one rendering context (pbuffer) which I want my shaders to run in do I need to :
1) Call cgCreateContext's , cgAddProgram, cgProgramByName, cgGLLoadProgram for each buffer ?
2)Call cgGLBindProgram/enable for each buffer ?
How do parameter binds operate between rendering contexts ?
Assuming of course that I want my shaders to run when I render to both contexts.
Rob J.
1) Call cgCreateContext's , cgAddProgram, cgProgramByName, cgGLLoadProgram for each buffer ?
2)Call cgGLBindProgram/enable for each buffer ?
How do parameter binds operate between rendering contexts ?
Assuming of course that I want my shaders to run when I render to both contexts.
Rob J.