diff --git a/README.md b/README.md index 0de0cd61bb..c9f22e502d 100644 --- a/README.md +++ b/README.md @@ -74,14 +74,13 @@ default = ["spv-out"] #TEMP! This allows IDE basic checks to report errors there, unless your IDE is sufficiently configurable already. Finally, when changes to the snapshots are made, we should verify that the produced shaders -are indeed valid for the target platforms they are compiled for. We automate this with `Makefile`: +are indeed valid for the target platforms they are compiled for: ```bash -make validate-spv # for Vulkan shaders, requires SPIRV-Tools installed -make validate-msl # for Metal shaders, requires XCode command-line tools installed -make validate-glsl # for OpenGL shaders, requires GLSLang installed -make validate-dot # for dot files, requires GraphViz installed -make validate-wgsl # for WGSL shaders -make validate-hlsl-dxc # for HLSL shaders via DXC -make validate-hlsl-fxc # for HLSL shaders via FXC -# Note: HLSL Make targets make use of the "sh" shell. This is not the default shell in Windows. +cargo xtask validate spv # for Vulkan shaders, requires SPIRV-Tools installed +cargo xtask validate msl # for Metal shaders, requires XCode command-line tools installed +cargo xtask validate glsl # for OpenGL shaders, requires GLSLang installed +cargo xtask validate dot # for dot files, requires GraphViz installed +cargo xtask validate wgsl # for WGSL shaders +cargo xtask validate hlsl dxc # for HLSL shaders via DXC +cargo xtask validate hlsl fxc # for HLSL shaders via FXC ``` diff --git a/xtask/src/cli.rs b/xtask/src/cli.rs index 01d60dfa13..3b5b1ed69f 100644 --- a/xtask/src/cli.rs +++ b/xtask/src/cli.rs @@ -17,6 +17,7 @@ Commands: fxc msl spv + wgsl Options: -h, --help Print help