This VSIX extension adds SPIR-V related commands to the context menu of GLSL shader files (and folders containing shaders) for invoking the GLSL reference compiler from inside the IDE.
Supported file extensions : .vert, .frag, .geom, .tesc, .tese, .comp
Note: The extension requires a version of the glslang reference compiler to be in your path that supports SPIR-V:
The extension will search for the
Compile all selected shader files to SPIR-V binary using Vulkan semantics (-V) and output to
Compile all selected shader files to SPIR-V binary using OpenGL semantics (-G) and output to
Note: SPIR-V for OpenGL is supported with the
A C++ example for loading a binary SPIR-V shader with OpenGL can be found here.
This will output human readable SPIR-V (-H) using Vulkan semantics and displays it in a new document window.
Compile errors are added to the error list of Visual Studio and work like regular compile errors. Double clicking on an error will open that shader and jump to the line that the error has occured.