What SPIR­-V tools are included in the LunarG Vulkan SDK?

Shader Creation Tool

The glslangValidator creates SPIR-­V shaders from equivalent GLSL and HLSL shaders.

SPIR­-V Disassembler and Assembler Tools

Disassembler spirv-­dis converts SPIR-­V shader into human­-readable and parsable form to help with debugging. Assembler spirv-­as takes edited, disassembled output and assembles it.

SPIR­-V Validation and Optimization Tools

Validator spirv-val reports if a file contains valid SPIR-V. Optimizer spirv-opt performs a number of ala-carte transformations on a SPIR-V module. Currently, its transformations fall into two general categories: specialization constants manipulation and code-reduction.

SPIR­-V Remapper Tool

The spirv­-remap tool enhances compression of SPIR­-V binary files via entropy reduction, including optional stripping of debugging information and dead functions. As an example, the tool is useful when games have large numbers of shaders and need smaller file sizes.

Return to FAQs