Open
Bug 1827953
Opened 2 years ago
Updated 1 year ago
Refine `GPUDevice.createShaderModule`'s default DX in the JS console
Categories
(Core :: Graphics: WebGPU, enhancement, P3)
Core
Graphics: WebGPU
Tracking
()
NEW
People
(Reporter: ErichDonGubler, Unassigned)
References
(Depends on 2 open bugs, Blocks 2 open bugs)
Details
Bug 1826681 implemented an MVP for communicating WebGPU shader compilation messages emitted by GPUDevice.createShaderModule to the user via the tab's JS console. However, there are some things about this experience that we'd like to take some additional time to refine, in order to achieve a joyful experience, instead of merely a functional one. We'd like to make more bugs based on research in this bug.
Bugs blocking this one are part of the scope of this issue. The current (non-exhaustive) list of things we've thought about so far, but haven't broken out into separate bugs yet:
- Should we add a way in the WebGPU API (implementation-specific? prefs?) to control whether the current console groups should be expanded by default? This would let users remove a debugging step when they are constantly tweaking shaders and refreshing.
- How can we leverage source maps when the user provides a
GPUShaderModuleDescriptor.sourceMapto better contextualize diagnostics? See also bug 1827947. - Should we tweak the format of messages specifically for presentation in the JS console? It's possible that we will be able to provide a superior experience in general, i.e., by printing source links to view the
createShaderModulecode in console. See also bug 1827947.
| Reporter | ||
Comment 1•2 years ago
|
||
I'm interested in driving this, but it's not a priority for the team right now.
| Reporter | ||
Updated•2 years ago
|
Depends on: webgpu-shader-error-stacks
| Reporter | ||
Updated•2 years ago
|
Summary: Refine requirements for `GPUDevice.createShaderModule`'s default DX in the JS console → Refine `GPUDevice.createShaderModule`'s default DX in the JS console
| Reporter | ||
Updated•2 years ago
|
Severity: -- → S3
Priority: -- → P3
| Reporter | ||
Updated•2 years ago
|
See Also: → webgpu-labels
| Reporter | ||
Updated•2 years ago
|
Depends on: webgpu-labels
See Also: webgpu-labels →
| Reporter | ||
Updated•2 years ago
|
Blocks: webgpu-phase-2
No longer depends on: webgpu-v1
Updated•1 year ago
|
Blocks: webgpu-triage
You need to log in
before you can comment on or make changes to this bug.
Description
•