- Download and install the Vulkan SDK (refer to the Downloading Vulkan SDK recipe from Chapter 1, Instance and Devices).
- Open the command prompt/terminal and go to the folder which contains shader files that should be converted.
- To convert a GLSL shader stored in the <input> file into a SPIR-V assembly stored in the <output> file, run the following command:
glslangValidator -H -o <output> <input> > <output_txt>