docs: explain Windows shader-test validator prerequisite
(cherry picked from commit 32eb93495919655651e6b64be31e68b71af70422)
This commit is contained in:
1 parent
635360da20
commit
1b744f84e6
1 file changed
+18
@@ -265,6 +265,24 @@ victory config
|
|||||||
Logging: `VICTORY_LOG=victory_loader=trace,info` (a release build logs
|
Logging: `VICTORY_LOG=victory_loader=trace,info` (a release build logs
|
||||||
info and above).
|
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/<version>/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
|
## Debugging
|
||||||
|
|
||||||
A release build has no debugging aids. Build them in with
|
A release build has no debugging aids. Build them in with
|
||||||
|
|||||||
Reference in new issue
Block a user