diff --git a/tools/example-showcase/src/main.rs b/tools/example-showcase/src/main.rs index c8feff1050..6fa24b1a27 100644 --- a/tools/example-showcase/src/main.rs +++ b/tools/example-showcase/src/main.rs @@ -773,9 +773,7 @@ fn parse_examples() -> Vec { let technical_name = val.get("name").unwrap().as_str().unwrap().to_string(); let source_code = fs::read_to_string(val["path"].as_str().unwrap()).unwrap(); - let shader_regex = - Regex::new(r"(shaders\/\w+\.wgsl)|(shaders\/\w+\.frag)|(shaders\/\w+\.vert)") - .unwrap(); + let shader_regex = Regex::new(r"shaders\/\w+\.(wgsl|frag|vert|wesl)").unwrap(); // Find all instances of references to shader files, and keep them in an ordered and deduped vec. let mut shader_paths = vec![];