Skip to content
| Marketplace
Sign in
Visual Studio>Tools>SPIRV-VSExtension

SPIRV-VSExtension

Sascha Willems

|
6,946 installs
| (5) | Free
Adds SPIR-V commands to the context menu of GLSL shader files and folders. Generate SPIR-V binaries for Vulkan or OpenGL and display human readable SPIR-V directly inside Visual Studio.

About

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:

  • Built from the sources at https://github.com/KhronosGroup/glslang
  • Install the LunartG Vulkan SDK (comes with a pre-built version)

The extension will search for the glslangvalidator.exe using the paths from the following environment variables: PATH, VK_SDK_PATH and VULKAN_SDK (set by the LunarG SDK)

Features

SPIR-V functions

Compile to SPIR-V (Vulkan semantics)

Compile all selected shader files to SPIR-V binary using Vulkan semantics (-V) and output to "filename"."stage".spv.

Compile to SPIR-V (OpenGL semantics)

Compile all selected shader files to SPIR-V binary using OpenGL semantics (-G) and output to "filename"."stage".spv.

Note: SPIR-V for OpenGL is supported with the GL_ARB_gl_spirv extension and implemented as a binary shader format.

A C++ example for loading a binary SPIR-V shader with OpenGL can be found here.

Print human-readable SPIR-V

This will output human readable SPIR-V (-H) using Vulkan semantics and displays it in a new document window.

Error list

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.

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft