VenomEngine
Cross-Platform Modern Graphics Engine
Loading...
Searching...
No Matches
DirectX Shader Compiler Setup

Instructions for setting up DirectX Shader Compiler to compile HLSL shaders to SPIR-V.

Prerequisites

Refer to the official DXC Prerequisites.

Automated Setup

Use the following Makefile command:

make dxc

Manual Setup

Alternatively, you can manually build DXC:

mkdir cmake_build
cd cmake_build
cmake ../lib/DirectXShaderCompiler -G <Generator> -C ../lib/DirectXShaderCompiler/cmake/caches/PredefinedParams.cmake -DCMAKE_BUILD_TYPE=Release -DDXC_USE_LIT=On -DLLVM_ENABLE_ASSERTIONS=On -DLLVM_LIT_ARGS="-v"
cmake --build . --target dxc --config Release