Closed ErichDonGubler closed 1 week ago
The attribute has an additional rule:
More than one diagnostic attribute may be specified on a syntactic form, but they must specify different triggering rules.
So same severity is allowed for the global filter, but disallowed for attributes.
Oof! My mistake, it seems. 😩 Thanks for the patient response.
According to the WGSL spec.:
...where
NS1
andNS2
correspond to thes1
ands2
matrix values inwebgpu:shader,validation,parse,diagnostic:duplicate_attribute_same_location:*
. This means that whens1 === s2
in theduplicate_attribute_same_location
test, we should expect success, in addition to the cases already expected wheresame_rule === false
.