README updated re: separable shaders

This commit is contained in:
Emmanuel BENOîT 2015-03-11 09:06:18 +01:00
parent ce57d85007
commit e773ac4555

15
README
View file

@ -1,13 +1,11 @@
Quick and dirty, Linux-only GLSL syntax checker for Syntastic [1]. It uses Quick and dirty, Linux-only GLSL syntax checker for Syntastic [1]. It uses
the local GL driver to check for errors in shaders. It requires OpenGL 4.1 the local GL driver to check for errors in shaders. It can be used for both
because it uses glCreateShaderProgramv. '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: A shader's source file must contain a line that reads:
// type: X
// type: X
where X is one of the following: where X is one of the following:
v Vertex shader v Vertex shader
f Fragment shader f Fragment shader
g Geometry shader g Geometry shader
@ -15,12 +13,15 @@ where X is one of the following:
te Tessellation evaluation shader te Tessellation evaluation shader
c Compute 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 Also, you probably need to add
let g:syntastic_glsl_checkers = [ 'driver' ] let g:syntastic_glsl_checkers = [ 'driver' ]
somewhere in your Vim configuration. somewhere in your Vim configuration.
For NeoBundle, this should work: For NeoBundle, this should work:
NeoBundle 'tseeker/syntastic-glsl-drv' , { NeoBundle 'tseeker/syntastic-glsl-drv' , {
\ 'build' : { \ 'build' : {
\ 'linux' : 'make' \ 'linux' : 'make'