Driver-based GLSL checker for Syntastic / Vim
This repository has been archived on 2024-07-18. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
2015-03-11 09:06:18 +01:00
syntax_checkers/glsl Support for 'separable:' comment in shaders 2015-03-11 09:03:39 +01:00
.gitignore Ignore the executable 2015-03-10 21:54:20 +01:00
check_glsl.c Checker can use "normal" shaders now 2015-03-11 08:56:20 +01:00
LICENSE README and LICENSE added 2015-03-10 21:51:27 +01:00
Makefile Initial import 2015-03-10 20:58:30 +01:00
README README updated re: separable shaders 2015-03-11 09:06:18 +01:00

Quick and dirty, Linux-only GLSL syntax checker for Syntastic [1]. It uses
the local GL driver to check for errors in shaders. It can be used for both
'normal' shaders and separable shaders. It requires OpenGL 3.0 in the former
case, and ARB_separate_shader_objects in the latter.

A shader's source file must contain a line that reads:
	// type: X
where X is one of the following:
	v	Vertex shader
	f	Fragment shader
	g	Geometry shader
	tc	Tessellation control shader
	te	Tessellation evaluation shader
	c	Compute shader

If you want a shader to be checked as a separable shader, you'll need to add
this line:
	// separable: yes

Also, you probably need to add
	let g:syntastic_glsl_checkers = [ 'driver' ]
somewhere in your Vim configuration.

For NeoBundle, this should work:
	NeoBundle 'tseeker/syntastic-glsl-drv' , {
		\ 'build' : {
		\     'linux' : 'make'
		\    },
		\ }


[1] https://github.com/scrooloose/syntastic