Bug 281680

Summary: [WebGPU] WebCam texture doesn't work with WebGPU
Product: WebKit Reporter: Brendan Duncan <brendanduncan>
Component: WebGPUAssignee: Mike Wyrzykowski <mwyrzykowski>
Status: RESOLVED FIXED    
Severity: Normal CC: mwyrzykowski, tzagallo, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
test webcam textures with webgpu none

Brendan Duncan
Reported 2024-10-17 11:30:21 PDT
Created attachment 472970 [details] test webcam textures with webgpu Video textures work but webcam textures are black and cause the command buffer submission to be slow. There are no console errors.
Attachments
test webcam textures with webgpu (4.26 KB, text/html)
2024-10-17 11:30 PDT, Brendan Duncan
no flags
Radar WebKit Bug Importer
Comment 1 2024-10-17 11:55:21 PDT
Mike Wyrzykowski
Comment 2 2024-10-25 11:43:23 PDT
Until this is fixed, you can workaround with: - const texture = device.importExternalTexture({source: video}); + const texture = device.importExternalTexture({source: new VideoFrame(video)});
Mike Wyrzykowski
Comment 3 2024-10-26 19:55:35 PDT
EWS
Comment 4 2024-10-29 06:57:47 PDT
Committed 285825@main (ecc0b3cc6370): <https://commits.webkit.org/285825@main> Reviewed commits have been landed. Closing PR #35765 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.