We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently invalid syntax will silently fail. I'd like an error returned or an exception thrown instead of the results up until the invalid syntax.
Example:
import wgsl_reflect from "@feng3d/wgsl_reflect"; const { WgslReflect } = wgsl_reflect; const reflect = new WgslReflect(` const valid_not_skipped: u32 = 0u; some invalid syntax; const valid_but_skipped: u32 = 0u; `); console.log(reflect); /* _WgslReflect2 { structs: [], overrides: [], uniforms: [], storages: [], textures: [], samplers: [], functions: [], aliases: [], ast: [ Const { name: 'valid_not_skipped', type: [Type], storage: '', access: '', value: [LiteralExpr], attributes: null } ], entry: EntryFunctions { vertex: [], fragment: [], compute: [] } } */
The text was updated successfully, but these errors were encountered:
I'll look into adding better error exceptions.
Sorry, something went wrong.
For me, I just compile with WebGPU, if it fails then don't call wgsl_reflect.
No branches or pull requests
Currently invalid syntax will silently fail. I'd like an error returned or an exception thrown instead of the results up until the invalid syntax.
Example:
The text was updated successfully, but these errors were encountered: