How closely does wgpu track changes to the WGSL spec? #2784
-
I'm currently going through the learn-wgpu guide, and I noticed that the WGSL Of course, if WGSL is a moving target, it's totally fair that wgpu doesn't match it in lockstep! But the wgpu README doesn't provide a dated WGSL spec (in fact, it links to the latest editor's draft), so it's hard for a newcomer like me to judge the gap between what wgpu supports and what the current WGSL spec provides. I'd like to be able to reference the WGSL spec to understand what functionality I can use; but I'm unable to tell whether wgpu itself supports the specified functionality. I also recognize that the latest version of wgpu (0.12.0) was released before the attributes change above, so it would be unreasonable to expect it to support that particular change. Even so, the published README for this version also hotlinks to the Editor's Draft, so it remains both easy to be misled and hard to know what is actually supported. So, my concrete questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thanks for asking such a detailed question!
No :) we just try our best to keep up
We always work towards latest, so we end up with a Frankenstein mix.
That might be a reasonable way to do it, keep a list of wgsl changes and show when we implemented it.
Sure, PR's accepted :) Targeting a moving spec is fun because the more it changes the less time you have for documenting the changes, but the less it changes the more time to document the changes. WGSL in particular had a period of moving quite quickly followed by a lot of small scale changes, so the 0.12 -> current jump is particularly glaring. Fwiw, I don't think versions WGSL specs exist really, unless there's some magic url I don't know about, there's just the current spec and the slightly more out of date copy hosted by w3. |
Beta Was this translation helpful? Give feedback.
Thanks for asking such a detailed question!
No :) we just try our best to keep up
We always work towards latest, so we end up with a Frankenstein mix.
That might be a reasonable way to do it, keep a list of wgsl changes and show when we implemented it.