From 1b744f84e6ae889502bc4eb1624b99fd4fcc4ba6 Mon Sep 17 00:00:00 2001 From: Omeya Sawant Date: Tue, 24 Nov 2026 22:45:02 +0530 Subject: [PATCH] docs: explain Windows shader-test validator prerequisite (cherry picked from commit 32eb93495919655651e6b64be31e68b71af70422) --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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