[webgpu] https://iamferm.in/webgpu-path-tracing/ does not draw anything
Categories
(Core :: Graphics: WebGPU, defect)
Tracking
()
People
(Reporter: mayankleoboy1, Unassigned)
References
(Blocks 2 open bugs, )
Details
Attachments
(1 file)
|
43.02 KB,
text/plain
|
Details |
| Comment hidden (obsolete) |
| Reporter | ||
Comment 1•1 year ago
|
||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
| Reporter | ||
Comment 2•1 year ago
|
||
Profilw with webgpu preset logging: https://share.firefox.dev/3Zu53fQ
Error in web console:
12:05:18.723 Uncaptured WebGPU error: Shader module creation failed: Shader validation error
12:05:18.723
Encountered one or more errors while creating shader module "Compute shader"
12:05:18.723
WebGPU compilation info for shader module "Compute shader" (1 error(s), 0 warning(s), 0 info)
12:05:18.723
Shader validation error: Function [8] 'ray_color' is invalid
┌─ Compute shader:172:1
│
172 │ ╭ fn ray_color(r : Ray) -> vec3f {
173 │ │
174 │ │ var depth = 0;
175 │ │ var color = vec3(0.0, 0.0, 0.0); // background color
· │
220 │ │ * 1/(pow(shadow_hit.t, 2))
│ │ ^^^ naga::Expression [114]
· │
240 │ │ color = final_color*bounced_color;
241 │ │ return color;
│ ╰───────────────^ naga::Function [8]
│
= Expression [114] is invalid
= Argument [1] to Pow as expression [113] has an invalid type.
12:05:18.723 Uncaptured WebGPU error: ShaderModule with 'Compute shader' label is invalid
12:05:18.726 Uncaptured WebGPU error: ComputePipeline with 'Compute pipeline' label is invalid
12:05:18.726 Uncaptured WebGPU error: BindGroupLayout with '' label is invalid
12:05:18.726 Uncaptured WebGPU error: In a set_pipeline command, caused by: ComputePipeline with 'Compute pipeline' label is invalid
12:05:18.726 Uncaptured WebGPU error: Command encoder is locked by a previously created render/compute pass. Before recording any new commands, the pass must be ended.
12:05:18.726 Uncaptured WebGPU error: Command encoder is invalid
Comment 3•1 year ago
|
||
Latest error messages indicate a blocker on bug 1829879, which is unsurprising.
Updated•1 year ago
|