Open Bug 1878319 Opened 1 year ago Updated 1 year ago

WebGPU demo (https://web-gpu-particles.vercel.app/) doesnt draw anything on the screen

Categories

(Core :: Graphics: WebGPU, defect, P3)

defect

Tracking

()

People

(Reporter: mayankleoboy1, Unassigned)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file)

Go to https://web-gpu-particles.vercel.app/

AR: Nothing is drawn on the screen. Chrome does render.

20:20:52.344
Encountered one or more errors while creating shader module "render shader module"
20:20:52.344
WebGPU compilation info for shader module "render shader module" (1 error(s), 0 warning(s), 0 info)
20:20:52.344

Shader validation error:
┌─ render shader module:41:38

41 │ var ratio_velocity = min(velocity, 10);
│ ^^^ naga::Expression [11]

20:20:52.344
Encountered one or more errors while creating shader module "compute shader module"
20:20:52.344
WebGPU compilation info for shader module "compute shader module" (1 error(s), 0 warning(s), 0 info)
20:20:52.344

Shader validation error:
┌─ compute shader module:36:73

36 │ particles2[id_f].z += d_norm.x / ((1 / uni.power) * max(length, 4));
│ ^^^ naga::Expression [56]

20:20:52.344 Error matching ShaderStages(VERTEX) shader requirements against the pipeline, caused by: Shader module is invalid
20:20:52.344 Error matching shader requirements against the pipeline, caused by: Shader module is invalid
20:20:52.344 Uncaught (in promise) TypeError: GPUQueue.writeBuffer: ArrayBufferView branch of (ArrayBufferView or ArrayBuffer) can't be a SharedArrayBuffer or an ArrayBufferView backed by a SharedArrayBuffer
reset_particles https://web-gpu-particles.vercel.app/main.js:2301
set_num_particles https://web-gpu-particles.vercel.app/main.js:2210
<anonymous> https://web-gpu-particles.vercel.app/main.js:2355
main.js:2301:25

Attached file about:support
Blocks: webgpu-apps
Severity: -- → S2

WebGPU is unreleased tech. Dropping Severity to S3 to remove from org tracking.

Severity: S2 → S3
Priority: -- → P1

NI'ing for root cause investigation, no promises on ETA.

Flags: needinfo?(egubler)
Summary: WebGPU demo (web-gpu-particles.vercel.app) doesnt draw anything on the screen → WebGPU demo (https://web-gpu-particles.vercel.app/) doesnt draw anything on the screen

Blocked on at least the following:

  • Missing min and max const. eval. impls. (upstream: wgpu#4507)
  • bug 1696216, for buffer writes backed by a SharedArrayBuffer.
Flags: needinfo?(egubler)
Priority: P1 → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: