Rust-GPU / Rust-GPU/rust-gpu

Make `naga` validation errors easier to debug

Open
#204 8 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
Rust
Stars
3.4k
Forks
125
PR merge metrics
No merged PRs in 30d

Description

Currently when naga fails validation (when using wgpu +rust-gpu for the web) it can be really confusing and really hard to debug:

We should make it better so it is obvious what naga-generated code is causing the failure and how it maps to the rust-gpu input

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the validation-debugging cases in discussions 23 and 203 and the naga failures described in this issue. Define what information is needed to identify naga-generated code and map it back to rust-gpu input; done means those failures become substantially easier to trace.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.