Implement WGSL uniformity analysis #4369
Labels
area: validation
Issues related to validation, diagnostics, and error handling
naga
Shader Translator
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Naga should implement the uniformity analysis introduced in gpuweb/gpuweb@0561a0ee.
I think this would replace the uniformity analysis we have now. It could still be enabled by
ValidationFlags::CONTROL_FLOW_UNIFORMITY
.The algorithm given in the spec looks, at first glance, like it should be straightforward to implement on Naga's IR, even though we don't have handles/indices for statements, only expressions.
There are also some more ideas on how to update our analysis in #4320.
Items to check:
DISABLE_UNIFORMITY_REQ_FOR_FRAGMENT_STAGE
should be removed.workgroupUniformLoad
.return
/break
/discard
/continue
) should be permitted.The text was updated successfully, but these errors were encountered: