Page 1 of 1

Anybody can tell me how to use NVShaderPerf?

Posted: Thu Jun 19, 2008 6:46 pm
by chuck_starchaser
Damn nVidia! Always the same thing; hardly any documentation on any programs they offer. I don't understand anything in their tutorial page:
http://developer.download.nvidia.com/to ... torial.pdf
My first attempt was:

Code: Select all

NVShaderPerf -gpu G80 -type glsl_fp -function stdFS -profile ps_4_0 ambientmapped_simple.fp
but it complains that the 4_0 profile doesn't agree with type glsl_fp. Tried 3_0, 2_0, 2_a... same thing. No idea what the hell -function means, btw. Been trying all kinds of stuff, and all I get is one error message or another.

If I get rid of -profile option, it tells me Error spawning Cg, cannot find file specified. What the hell is going on?

Posted: Thu Jun 19, 2008 10:29 pm
by chuck_starchaser
Klauss solved my problem over Google chat.
The problem is that NVShaderPerf needs to se Cg installed.
Simplest solution is to install their SDK 10 for OpenGL first.
Works like a charm now.