Skip to main content

validate_wgsl_structure

Function validate_wgsl_structure 

Source
pub fn validate_wgsl_structure(source: &str) -> bool
Expand description

Validate that a WGSL source has basic structural correctness.

Checks:

  1. The source contains at least one fn keyword.
  2. Braces are balanced (same number of { and }).