diff --git a/README.md b/README.md index 683c127..eb3da65 100644 --- a/README.md +++ b/README.md @@ -265,6 +265,24 @@ victory config Logging: `VICTORY_LOG=victory_loader=trace,info` (a release build logs info and above). +### Windows shader-test validator + +The shader tests use `dxil.dll` to validate Shader Model 6.6 containers. +An older Windows SDK validator can load successfully but reject them with +`Unknown shader model 'ps_6_6'`. If this happens, use a current x64 validator +from [Microsoft's DirectX Shader Compiler releases](https://github.com/microsoft/DirectXShaderCompiler/releases) +or a current Windows SDK. Set its path for the test session: + +```powershell +$env:VICTORY_DXIL = 'C:\tools\dxc\bin\x64\dxil.dll' +cargo test -p victory-shader --lib --locked -- --test-threads=1 +``` + +Without this override, the validator loader selects the newest installed +Windows SDK's `bin//x64/dxil.dll`, then falls back to the DLL search +path when no SDK copy is found. This is a test/offline-validation dependency; +the translated shaders do not require it at runtime. + ## Debugging A release build has no debugging aids. Build them in with