Joined: 11 Apr 2005
|Posted: Tue May 10, 2005 6:03 pm Post subject: 3dLabs Release Open Source GLSL tools
|It's important when developing GLSL shaders to ensure they are valid, conformant, portable code.
However it is unwise to rely on a vendor's GLSL compiler as an assessor of the correctness of GLSL shader code. Some compilers accept invalid code without complaint, which will not run correctly on other OpenGL systems. Conversely, some compilers fail on valid code, which is an indication of a driver bug.
3Dlabs has created a set of tools to help developers create truly portable OpenGL Shading Language (GLSL) code.
Those tools are released as Open Source under an OSI-certified BSD-style license, and have been reviewed for correctness against the OpenGL Shading Language Specification. (And since they are Open Source, you may review them as well.)
You may find the tools at http://developer.3dlabs.com/openGL2/downloads/index.htm
1) "OpenGL Shading Language Parser Test" tests an OpenGL driver for conformance to the GLSL specification.
Parser Test compares the response of a GL driver to a wide array of both valid and invalid GLSL code against known-correct responses. It displays individual pass/fail results and info logs, as well as an overall percentage of success.
2) "OpenGL Shading Language Validate" tests your GLSL sourcecode for conformance to the GLSL specification.
Validate has it's own embedded GLSL parser (see next item), so it can run on any system, regardless of whether it has a GLSL-capable graphics driver.
3) "OpenGL Shading Language Front-End" is production source code for the front-end parser for the OpenGL Shading Language.
3Dlabs uses this parser in their drivers, and encourages it's use for any tools that process GLSL sourcecode.
For further details, please see the webpage.
Mike Weiblen -- 3Dlabs Inc -- Fort Collins, Colorado