Skip to main content

Module lint

Module lint 

Source
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§

LintError
An I/O failure encountered while scanning a directory for WGSL shaders.
PipelineLayoutDesc
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.