Implement automatic type conversion for WGSL
Categories
(Core :: Graphics: WebGPU, task, P2)
Tracking
()
People
(Reporter: ErichDonGubler, Assigned: jimb, NeedInfo)
References
(Blocks 8 open bugs)
Details
Attachments
(1 file)
(deleted),
text/plain
|
Details |
A significant change that we haven't caught up with yet from the WGSL spec is section 5.2.1 (Abstract numeric types
) requiring automatic type conversions to be usable. The intent is to allow for more natural usage of numeric literals and expressions via the inference of the unnameable types AbstractInt
and AbstractFloat
.
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Comment 1•2 years ago
|
||
Naga upstream issue tracking this: https://github.com/gfx-rs/naga/issues/2127
Reporter | ||
Comment 2•2 years ago
|
||
This is known to break the following demos from webgpu-v1-samples
:
computeBoids
imageBlur
particles
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Comment 3•2 years ago
|
||
AFAICT, all of the issues currently reported in the JS console while attempting to use WebGPT would be resolved with this bug: https://www.kmeans.org/
Attaching the console log. See also webgpu-v1-webgpt
.
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Comment 4•2 years ago
|
||
This issue blocks the vast majority of shader compilation at https://usegpu.live/demo/.
Comment 5•1 year ago
|
||
The severity field is not set for this bug.
:jimb, could you have a look please?
For more information, please visit BugBot documentation.
Reporter | ||
Updated•1 year ago
|
Reporter | ||
Comment 6•1 year ago
|
||
I noticed that at least some shaders in https://compute.toys break because of this issue, like https://compute.toys/view/167.
Updated•1 year ago
|
Reporter | ||
Updated•1 year ago
|
Updated•1 year ago
|
Reporter | ||
Updated•1 year ago
|
Reporter | ||
Updated•1 year ago
|
Reporter | ||
Updated•1 year ago
|
Description
•