WebGPU: implement `float32-blendable` device feature
Categories
(Core :: Graphics: WebGPU, enhancement, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox158 | --- | fixed |
People
(Reporter: ErichDonGubler, Assigned: ErichDonGubler)
References
(Blocks 2 open bugs)
Details
(Keywords: dev-doc-complete)
Attachments
(2 external files)
| Assignee | ||
Comment 2•1 year ago
|
||
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Comment 4•1 year ago
|
||
| bugherder | ||
| Assignee | ||
Comment 5•1 year ago
|
||
I'm going to leave the full resolution of this bug for later. With bug 1933324, users will be directed to this bug to holler if they're blocked.
Comment 6•1 year ago
|
||
Hi, is it possible to get some updates on this one, is there some help needed to implement this?
I would like to have this feature on nightly as other browsers are already supporting this, let me know if I can help.
| Assignee | ||
Comment 7•1 year ago
|
||
Hey :sonorousfreq! 👋🏻 Unfortunately, I don't have an update for you, since this is not prioritized for the short- to medium-term. Could you tell me about what this feature lets you do, or the lack of this feature prevents you from doing? That might be helpful information for re-prioritizing.
Comment 8•1 year ago
|
||
(In reply to Erich Gubler [:ErichDonGubler] from comment #7)
Hey :sonorousfreq! 👋🏻 Unfortunately, I don't have an update for you, since this is not prioritized for the short- to medium-term. Could you tell me about what this feature lets you do, or the lack of this feature prevents you from doing? That might be helpful information for re-prioritizing.
Hi,
we are using float32 because it has better precision and is blendable in WebGPU, for rendering IFS fractals, you can check it out here: https://github.com/chaos-matters/chaos-master, you can check the live site from github readme (obviously, it will not work in Firefox, but we will try to have a fallback if this feature is not implemented soon).
You can also check these sources for more info why it is useful in scientific visualizations and simplifies things as you get blendable and atomic operations: https://github.com/gpuweb/gpuweb/issues/3556.
Let me know if there is a way to contribute or help in any other way.
| Assignee | ||
Comment 9•1 year ago
|
||
:sonorousfreq: Good news! Just chatted with the team, and we've bumped up wgpu#6555 for consideration. I can't promise it'll come before our MVP release, but it's definitely jumped quite a few other issues in line now. 😀
Comment 10•1 year ago
|
||
(In reply to Erich Gubler [:ErichDonGubler] from comment #9)
:sonorousfreq: Good news! Just chatted with the team, and we've bumped up
wgpu#6555 for consideration. I can't promise it'll come before our MVP release, but it's definitely jumped quite a few other issues in line now. 😀
Hi,
sounds great, do you have some estimate when the MVP release is?
| Assignee | ||
Comment 11•1 year ago
•
|
||
Sure do! The WebGPU team is hoping to release to stable Firefox (on Windows only) with Firefox 140 (see also https://whattrainisitnow.com/). After that point, we'll almost certainly have a few months of chasing issues we won't have discovered or prioritized prior to release. Once the release has been stabilized, we'll start thinking about new scope to take on.
You didn't ask, but I presume that the implicit question is: "When might I expect Firefox's WebGPU team to work on float32-blendable? At earliest, my guess is that this would be in Q4 of 2025.
Comment 12•1 year ago
|
||
Hi,
thanks for the details, is it possible to join the WebGPU team somehow?
| Assignee | ||
Comment 13•1 year ago
|
||
Joining as an employee is not on the table, but we'd be happy to mentor you in contributions to Firefox and WGPU! Checkout the WGPU's README on GitHub to get onboarded: https://github.com/gfx-rs/wgpu
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Updated•9 months ago
|
| Assignee | ||
Updated•9 months ago
|
| Assignee | ||
Comment 14•9 months ago
•
|
||
wgpu#8963 upstream implements this feature for Vulkan (which, in Firefox, would only mean access on Linux), and was merged just now. This means that we have motivation to wire up the feature, for which I've submitted a patch (D280997) against this bug just now. Further work to extend support to Windows and Metal is necessary in wgpu upstream; I'll file bugs to track there here shortly.
| Assignee | ||
Comment 15•9 months ago
|
||
Updated•9 months ago
|
| Assignee | ||
Updated•8 months ago
|
| Assignee | ||
Updated•8 months ago
|
| Assignee | ||
Comment 16•8 months ago
|
||
The patch builds, now that dependencies have landed! Here's my first Try push for this patch stack that I haven't seen the results of yet: try:f365a077970c
| Assignee | ||
Comment 17•8 months ago
|
||
Hmm, the Try push reveals at least one issue with validation we're not getting right; for some reason, wgpu doesn't actually validate render pipelines for float32-blendable textures unless the texture format also allows for filtering, which AFAIK isn't a restriction we need to enforce.
It doesn't seem good to try to enable this until we've got it fixed. I've messaged the community in Matrix to ask about next steps: https://matrix.to/#/!FZyQrssSlHEZqrYcOb:matrix.org/$qh5nDHZnxsYy4MqQxeDVcuMNip87RxLs1YgarxCmCuM?via=matrix.org&via=mozilla.org&via=catgirl.cloud
| Assignee | ||
Comment 18•8 months ago
|
||
Aha, Andy already discovered this issue in wgpu#9032, and so we're back to depending on a revendor to resolve the issue. 😅
| Assignee | ||
Updated•8 months ago
|
Updated•8 months ago
|
| Assignee | ||
Comment 19•2 months ago
|
||
Seeing where things are at now WRT CTS with a Try push (link).
| Assignee | ||
Comment 20•1 month ago
•
|
||
Okay, CTS looks clean. Queued the remaining patch for landing.
I don't think this requires a dev-doc yet, because the only configuration that will get float32-blendable is Vulkan (Linux and, maybe, Android later). However, with this wired up, a revendor (noisily) will bring in any support that lands for Metal (macOS) and Windows later. This means we need to keep our eye out as a team for when that happens.
EDIT: All configurations we currently have implemented (Linux, macOS, and Windows) will get this. Linux hasn't shipped yet. We need a dev-doc. 😅
| Assignee | ||
Comment 21•1 month ago
|
||
Ah, sorry, I had crossed some wires when remembering platform availability for this feature, sorry about that! Edited comment 20 to fix it.
| Assignee | ||
Comment 22•1 month ago
|
||
Suggested dev. doc.:
WebGPU now reports the
float32-blendabledevice feature on all currently supported platforms.
I'm not sure if we need more detail beyond that?
Comment 23•1 month ago
|
||
Comment 24•1 month ago
|
||
| bugherder | ||
Updated•1 month ago
|
Updated•1 month ago
|
Comment 25•1 month ago
|
||
This bug has been documented appropriately on MDN; see https://github.com/mdn/content/issues/45891.
Description
•