Closed Bug 1880742 Opened 1 year ago Closed 9 months ago

[webgpu] https://iamferm.in/webgpu-path-tracing/ does not draw anything

Categories

(Core :: Graphics: WebGPU, defect)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: mayankleoboy1, Unassigned)

References

(Blocks 2 open bugs, )

Details

Attachments

(1 file)

Attached file about:support
Flags: needinfo?(egubler)
Severity: -- → S3
Flags: needinfo?(egubler)

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

Latest error messages indicate a blocker on bug 1829879, which is unsurprising.

WFM now!

Status: NEW → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: