Open Bug 1876519 Opened 1 year ago Updated 8 months ago

Make martinlaxenaire.github.io/gpu-curtains work with WebGPU

Categories

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

task

Tracking

()

People

(Reporter: nical, Unassigned)

References

(Depends on 1 open bug, Blocks 2 open bugs)

Details

Attachments

(1 file)

https://martinlaxenaire.github.io/gpu-curtains/

I see a lot flood of external image related errors in the logs.

Those errors, which I see as:

Uncaught Error: GPUDeviceManager: could not upload texture: planeTexture because: GPUQueue.copyExternalImageToTexture: 'source' member of GPUImageCopyExternalImage could not be converted to any of: ImageBitmap, HTMLCanvasElement, OffscreenCanvas.

…are thrown when the page attempts to use a video element. This is at least blocked on VideoFrame, likely webgpu-external-textures as a whole.

Also spends tons of time in compiling shaders: https://share.firefox.dev/3W7c4m9
Edit: Filed bug 1939985

See Also: → 1939985

Testing a local build with my fix for #7356:

shadow-mapping works.

camera-renderer-transforms-bloom-pass fails with the following error:

Shader [...] parsing error: the type of `result` is expected to be `vec4<f32>`, but got `vec4<i32>`
   ┌─ wgsl:36:11
   │
36 │       var result: vec4f = mix(vec4(0), color, step(params.threshold, brightness));
   │           ^^^^^^ definition of `result`

This problem should be resolved by Jim's function database, expected soon. I have passed this to Jim as a test case for that.

gltf-dom-meshes fails with:

Uncaptured WebGPU error: Texture with 'BoomBox_Mat: baseColorTexture' label has been destroyed
Uncaptured WebGPU error: Texture with 'BoomBox_Mat: normalTexture' label has been destroyed

gltf-loader-ibl-shading fails with:

Uncaught DOMException: GPUCanvasContext.getCurrentTexture: Canvas not configured
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: