GLSL Validate - command-line GLSL shader compile / link validation tool - BSD License

FoxMcCloud

Newcomer
I'm working with a shader translator that outputs GLSL shaders aimed at ARB_separate_programs and to automate testing I wrote this tool that I'm releasing under the BSD license. It's a command-line app (glsl-validate) that, given a profile and a shader file, creates a context and attempts to compile the shader, printing PASS (and returning zero) if it links OK or FAIL (and returning one) followed by the info log.

Sample usage: "glsl-validate +profile=vertex ./shader.glsl"
(Yes, a +, not a -, as a parameter prefix and an = for assigning parameter values instead of a space. profile accepts 'vertex' and 'fragment'.)

The app is hosted at https://bitbucket.org/sherief/glsl-validate - it's OS X only currently but a Windows port needs only the implementation of two functions (create_opengl_context() and destory_opengl_context()). I mostly use OS X but I'll try to get around to porting it to Windows next weekend.

Let me know if you have any questions, comments or change suggestions.
 
Back
Top