Function check
pub fn check(wgsl: &str) -> Result<(), String>Expand description
Check that wgsl is a surface shader of the documented shape, and name
what is wrong when it is not.
It must parse; declare exactly one function, ENTRY; that function
must take INPUTS in order and return RESULT; and the module must
declare no entry point and no global variable (no binding, no texture,
no sampler, no override): the toolkit owns every input.
ยงErrors
The first thing wrong with it, with the line and column where the grammar refused it.