aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/GPUQueue.webidl
diff options
context:
space:
mode:
authorSamson <16504129+sagudev@users.noreply.github.com>2023-08-21 01:16:46 +0200
committerGitHub <noreply@github.com>2023-08-20 23:16:46 +0000
commit71e0372ac18709da66e581cf4a777a7cc5d4cb92 (patch)
tree44907b543dcc822fe20025b2ac417da6e2b7c908 /components/script/dom/webidls/GPUQueue.webidl
parentfed3491f23f8b7f3064ce297776deda76e485289 (diff)
downloadservo-71e0372ac18709da66e581cf4a777a7cc5d4cb92.tar.gz
servo-71e0372ac18709da66e581cf4a777a7cc5d4cb92.zip
Upgrade whole webgpu stack (#29795)
* Allow noidl files in script/dom/webidls * Upgrade wgpu to 0.16 and refresh whole webgpu implementation * Update WebGPU test expectations * misc * MutNullableDom -> DomRefCell<Option<Dom for GPUTexture * Direct use of GPUTextureDescriptor * Remove config from GPUCanvasContext * misc * finally blue color * gpubuffer "handle" error * GPU object have non-null label * gpu limits and info * use buffer_size * fix warnings * Cleanup * device destroy * fallback adapter * mach update-webgpu write webgpu commit hash in file * Mising deps in CI for webgpu tests * Updated expectations * Fixups * early reject * DomRefCell<Option<Dom -> MutNullableDom for GPUTexture
Diffstat (limited to 'components/script/dom/webidls/GPUQueue.webidl')
-rw-r--r--components/script/dom/webidls/GPUQueue.webidl29
1 files changed, 16 insertions, 13 deletions
diff --git a/components/script/dom/webidls/GPUQueue.webidl b/components/script/dom/webidls/GPUQueue.webidl
index c6e7e66cb5d..1fa33cab309 100644
--- a/components/script/dom/webidls/GPUQueue.webidl
+++ b/components/script/dom/webidls/GPUQueue.webidl
@@ -5,27 +5,30 @@
// https://gpuweb.github.io/gpuweb/#gpuqueue
[Exposed=(Window, DedicatedWorker), Serializable, Pref="dom.webgpu.enabled"]
interface GPUQueue {
- undefined submit(sequence<GPUCommandBuffer> commandBuffers);
+ undefined submit(sequence<GPUCommandBuffer> buffers);
- //GPUFence createFence(optional GPUFenceDescriptor descriptor = {});
- //void signal(GPUFence fence, GPUFenceValue signalValue);
+ //TODO:
+ //Promise<undefined> onSubmittedWorkDone();
- [Throws] undefined writeBuffer(
+ [Throws]
+ undefined writeBuffer(
GPUBuffer buffer,
GPUSize64 bufferOffset,
- /*[AllowShared]*/ BufferSource data,
+ BufferSource data,
optional GPUSize64 dataOffset = 0,
optional GPUSize64 size);
- [Throws] undefined writeTexture(
- GPUTextureCopyView destination,
- /*[AllowShared]*/ BufferSource data,
- GPUTextureDataLayout dataLayout,
+ [Throws]
+ undefined writeTexture(
+ GPUImageCopyTexture destination,
+ BufferSource data,
+ GPUImageDataLayout dataLayout,
GPUExtent3D size);
- //void copyImageBitmapToTexture(
- // GPUImageBitmapCopyView source,
- // GPUTextureCopyView destination,
- // GPUExtent3D copySize);
+ //[Throws]
+ //undefined copyExternalImageToTexture(
+ // GPUImageCopyExternalImage source,
+ // GPUImageCopyTextureTagged destination,
+ // GPUExtent3D copySize);
};
GPUQueue includes GPUObjectBase;