linter-glsl icon indicating copy to clipboard operation
linter-glsl copied to clipboard

Allow GLSL for Vulkan

Open bph1248 opened this issue 8 years ago • 2 comments

It would be great to have a way to invoke glslangvalidator such that it can parse Vulkan specific GLSL (ie. compile to SPIR-V using the -V option). Currently, lines such as layout(push_constant) uniform get flagged as an error, with the error message being 'push_constant' : only allowed when using GLSL for Vulkan. Cheers.

bph1248 avatar Feb 15 '17 13:02 bph1248

I really need this feature as well. This commit (actually only 3 lines) adds full vulkan shader support, but I could not yet fully test it (might break for some non-vulkan shaders), it breaks windows support and probably results in worse performance. Best would be probably to add an option to toggle this. And if anyone here cares for windows, there probably is some way to redirect output on windows to some null/dummy file, that would need a fix as well before it can be merged i guess...

nyorain avatar May 13 '17 15:05 nyorain

Any update on this? Thanks

murshex avatar Mar 16 '18 21:03 murshex