Skip to content

Commit be11fc9

Browse files
authored
CopyExternalImageToTexture: Support copy from webgpu context canvas/offscreenCanvas (#2375)
Address #2350.
1 parent 4aa01d6 commit be11fc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/index.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8315,9 +8315,9 @@ GPUQueue includes GPUObjectBase;
83158315
1. If any of the following requirements are unmet, throw an {{OperationError}} and stop.
83168316
<div class=validusage>
83178317
- If |source|.{{GPUImageCopyExternalImage/source}} is an {{HTMLCanvasElement}}:
8318-
Its [=canvas context mode=] must be `"2d"`, `"webgl"`, or `"webgl2"`.
8318+
Its [=canvas context mode=] must be `"2d"`, `"webgl"`, `"webgl2"`, or `"webgpu"`.
83198319
- If |source|.{{GPUImageCopyExternalImage/source}} is an {{OffscreenCanvas}}:
8320-
Its [=OffscreenCanvas context mode=] must be `"2d"`, `"webgl"`, or `"webgl2"`.
8320+
Its [=OffscreenCanvas context mode=] must be `"2d"`, `"webgl"`, `"webgl2"`, or `"webgpu"`.
83218321
- |source|.|origin|.[=Origin3D/x=] + |copySize|.[=Extent3D/width=]
83228322
must be &le; the width of |sourceImage|.
83238323
- |source|.|origin|.[=Origin3D/y=] + |copySize|.[=Extent3D/height=]

0 commit comments

Comments
 (0)