-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Support multiple diagnostic items in shader compilation #5295
Description
Is your feature request related to a problem? Please describe.
Right now naga-based tooling can only display one validation error at a time, it would be nice if such tooling could get access to all the errors naga can detect in order to ease working with wgsl files especially.
Describe the solution you'd like
It seems like Validator::validate could be feasibly modified to produce an iterator over validation errors (or more likely such behavior moved into something like Validator::validate_all or Validator::iter which validate calls and returns the first element).
Describe alternatives you've considered
wgsl_analyzer works around this for wgsl files by implementing its own validation layer, but this results in occasional mismatches with naga and lack of support for naga extensions like naga_oil.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status