PDA

View Full Version : library to generate ati+ nvidia specific shader stuff



binhex
09-15-2003, 03:16 AM
Is there some sort of library available so that I can write an app which uses pixel shaders, and then the lib generates the card specific cruft for each vendor so that both are supported?

Obli
09-15-2003, 05:44 AM
nVidia's Cg can do this job. As soon as GLslang will be here, then it will do that.

zeckensack
09-15-2003, 09:17 AM
Cg doesn't have an ATI_fragment_shader profile and isn't looking like getting one any time soon.

There's currently no portable way to write fragment shaders for the R200/NV2x tech level.

Obli
09-15-2003, 11:07 AM
I was thinking at just ARB_v_p + ARB_f_p.

zeckensack
09-15-2003, 11:54 AM
Of course your statement is correct for ARB_fp/ARB_vp http://www.opengl.org/discussion_boards/ubb/smile.gif
I just wanted to mention it, not everyone (... you'd like to give your programs to) has ARB_fp capable hardware http://www.opengl.org/discussion_boards/ubb/smile.gif