[wgsl-in] workgroup_size
parsed as a builtin variable although it is an attribute only
#1220
Labels
Milestone
workgroup_size
doesn't seem to be a builtin variable at all (it's not listed in the builtin variables section of the spec). The spec defines it as an attribute (seeworkgroup_size
). This means it should not be allowed as a parameter tomain
.For example, the following should not be allowed:
This attribute is only supposed to appear like this (see
workgroup_size
):I find this somewhat regrettable, as you'll have to save your
workgroup_size
in a variable as well (since you can't use a constant variable in the attribute, only non-negative integer literals; duplicating the value, allowing for a mismatch between the actual value and the variable) if you wanna do some math with it, but that is an issue to be raised with the spec.The text was updated successfully, but these errors were encountered: