Expand description
Design rule enforcement: WGSL shader linting and GPU descriptor validation.
Every design rule E1-E18 is enforced by a test that runs in cargo test --workspace from the phase that introduces the code it governs. This module
contains the lint functions that tests use to validate compliance.
Structs§
- Lint
Error - An I/O failure encountered while scanning a directory for WGSL shaders.
- Pipeline
Layout Desc - Pipeline layout descriptor — a simplified representation for lint checking.
- Violation
- A violation of a design rule.
Functions§
- check_
limits_ against_ webgl2 - Checks that GPU limits conform to WebGL2/GLES3.0 downlevel defaults.
- lint_
pipeline_ layout - Validates that a pipeline layout descriptor conforms to design rules E6 and E8.
- lint_
wgsl_ dir - Scans a directory, recursing into every subdirectory, for WGSL shader
files (
*.wgsl) and returns all design rule violations found.