Skip to content

GPUCompilationMessage for "cyclic dependency" is weird #4611

Answered by greggman
stefnotch asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure what you're asking for. AFAICT, the spec requires the WGSL to fail but it doesn't require any specific error message or line numbers. Those are entirely undefined and up to the implementation. It's fine for it to just say "bad WGSL" and nothing else. That's intentional as it is in every other GPU API since they may all take different paths to get to an error. All that's required is they don't allow invalid code.

That said, I'm not sure what you're asking for that's not already there. When I run this in Chrome I I call module.getCompilationInfo and it returns all the data required to highlight each line, no parsing required.

And here's an example highlighting each line based …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stefnotch
Comment options

Answer selected by stefnotch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants