View Full Version : How do you know if a vertex program is executed in hardware?
How do you know if a vertex shader is executed in hardware?
On old hardware this will be obvious, but on new hardware, it could depend on what you have in the shader, how long it is, etc.
Is there a way to query the driver to know if the vertex program will be handled by the GPU or CPU?
05-14-2004, 11:04 PM
Look at the glGetInfoLogARB function, it will give you a string with that information.
At which point does glGetInfoLogARB returns this information?
I tried querying after compiling, linking, validating or using, but I got either an error/warnings list or an empty string when there are no error/warnings... (nVidia 61 drivers)
05-15-2004, 01:46 AM
The glGetInfoLog only works with ATI drivers. I don't know if and how it is possible on nVidia drivers.
Of course the glGetInfoLog will work in nVidia too but there's no information if the shader runs in hardware or in software.
05-16-2004, 06:21 AM
I think another problem is, that the infolog's format is not standardized.
So you can only check at development time and not at runtime how a shader runs, because the log's format might have changed.
05-16-2004, 09:34 AM
The nonstandar logs are a very annoying question, because for example, I must have specialized code for different glsl compilers, to parse the error lines in the Shader Designer, and carry the cursor to the right source file and line in the code.
Let's hope that some standardization will happen.
The error/warning lines formatting issues is going to be annoying too for shader designers, while it's quite a trivial matter in terms of standardization.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.