This repository contains a Conan 2.x recipe for the DirectX Shader Compiler (DXC).
DirectX Shader Compiler is based on LLVM/Clang and is the official compiler for HLSL (High-Level Shader Language) to DXIL (DirectX Intermediate Language).
- Compiles HLSL shaders to DXIL
- Optional SPIR-V code generation support
- Cross-platform support (Windows, Linux)
conan create . --build=missingenable_spirv: Enable SPIR-V code generation (default: False)build_dxilconv: Include DXBC to DXIL converter and tools (default: True)
Add to your conanfile.txt or conanfile.py:
[requires]
directx-shader-compiler/1.8.2403
[tool_requires]
directx-shader-compiler/1.8.2403
This recipe uses the local DirectXShaderCompiler directory as the source.
conan create . --name=directx-shader-compiler --version=local --build=missingThe DirectX Shader Compiler is licensed under the University of Illinois/NCSA Open Source License. See the LICENSE.TXT file in the DirectXShaderCompiler directory for details.