Khronos Vulkan

How to use DXC (DirectX Shader Compiler)

Creative Commons

The DirectX Shader Compiler is a compiler used to compile High-Level Shader Language (HLSL) programs into SPIR-V intermediate representation.

To learn how to use the DirectX Shader Compiler execute "dxc --help" from a command prompt.

Please note that there is another copy of DXC that is created through installation of Visual Studio. That copy supports the DirectX API and has Vulkan capability disabled. The copy available through the Vulkan SDK alone does not support DirectX. The behavior of the "dxc" command is thus dependent of the value of the PATH environment variable. Please keep this in mind as you invoke the "dxc" command.