You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Consider [[binding(n, m)]] instead of [[set n, binding m]] #1068
I'm not a fan of combining the two numbers, I find it's very unfriendly to new users. (And to me as I always forget what order things go in). The [[binding 1, set 0]] syntax is much clearer as it's more explicit.
Reading the shader stage CL, I've switched to preferring [[binding(1), set(0)]] as it reads a lot nicer for things like [[stage(compute), workgroup_size(1, 2, 3)]]
Resolution: Couldn't come up with a clear, satisfactory name for [[group_and_binding(n, m)]] that makes the ordering apparent. Just use [[group(n), binding(m)]]. Always require both.
Activity
toji commentedon Sep 11, 2020
Would that also imply a change from
[[location 0]]->[[location(0)]]for consistency?kainino0x commentedon Sep 11, 2020
Maybe, but that's #1067 (I accidentally changed the syntax in this issue title)
Kangz commentedon Sep 14, 2020
How do we make it clear which one of N and M are for the group / the binding? Maybe it's better to be explicit and have
[[group(M), binding(N)]]?dj2 commentedon Sep 14, 2020
I'm not a fan of combining the two numbers, I find it's very unfriendly to new users. (And to me as I always forget what order things go in). The
[[binding 1, set 0]]syntax is much clearer as it's more explicit.dj2 commentedon Sep 14, 2020
Reading the shader stage CL, I've switched to preferring
[[binding(1), set(0)]]as it reads a lot nicer for things like[[stage(compute), workgroup_size(1, 2, 3)]]kainino0x commentedon Sep 15, 2020
Resolution: Couldn't come up with a clear, satisfactory name for
[[group_and_binding(n, m)]]that makes the ordering apparent. Just use[[group(n), binding(m)]]. Always require both.Bugfix for getTextureCopyLayout introduced in gpuweb#1068 (gpuweb#1077)